1 | <?php |
||
8 | class Record |
||
9 | { |
||
10 | protected $data; |
||
11 | |||
12 | public static $subfieldSeparator = '--'; |
||
13 | |||
14 | public function __get($name) |
||
22 | |||
23 | public function __set($name, $value) |
||
34 | |||
35 | public function __isset($name) |
||
39 | |||
40 | public function __unset($name) |
||
44 | |||
45 | /** |
||
46 | * Convert the object to its JSON representation. |
||
47 | * |
||
48 | * @param int $options |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | public function toJson($options = 0) |
||
56 | |||
57 | /** |
||
58 | * Convert the model instance to an array. |
||
59 | * |
||
60 | * @return array |
||
61 | */ |
||
62 | public function toArray() |
||
66 | |||
67 | /** |
||
68 | * Parse a *Representation of Dates and Times* (ISO 8601). |
||
69 | * The date requires 8 numeric characters in the pattern yyyymmdd. |
||
70 | * The time requires 8 numeric characters in the pattern hhmmss.f, |
||
71 | * expressed in terms of the 24-hour (00-23) clock. |
||
72 | * |
||
73 | * @param string $value |
||
74 | * |
||
75 | * @return Carbon|null |
||
76 | */ |
||
77 | protected function parseDateTime($value) |
||
89 | |||
90 | /** |
||
91 | * Parse a "name node", personal or corporate, main or added, that |
||
92 | * might have authority information encapsulated. |
||
93 | * |
||
94 | * @param string $authority |
||
95 | * @param array &$out |
||
96 | */ |
||
97 | protected function parseAuthority($authority, &$out) |
||
108 | |||
109 | /** |
||
110 | * Parse a "name node", personal or corporate, main or added, that |
||
111 | * might have relators encapsulated. |
||
112 | * |
||
113 | * @param QuiteSimpleXmlElement &$node |
||
114 | * @param array &$out |
||
115 | * @param string $default |
||
116 | */ |
||
117 | protected function parseRelator(&$node, &$out, $default = null) |
||
129 | |||
130 | /** |
||
131 | * Parse a "relationship node", one that have links to other records encapsulated. |
||
132 | * |
||
133 | * @param QuiteSimpleXmlElement $node |
||
134 | * |
||
135 | * @return array |
||
136 | */ |
||
137 | protected function parseRelationship($node) |
||
168 | } |
||
169 |