1 | <?php |
||
16 | class DataboxDocumentStructure |
||
17 | { |
||
18 | |||
19 | 1 | public static function fromList(array $values) |
|
29 | |||
30 | 1 | public static function fromValue(\stdClass $value) |
|
34 | |||
35 | /** |
||
36 | * @var \stdClass |
||
37 | */ |
||
38 | protected $source; |
||
39 | |||
40 | /** |
||
41 | * @var ArrayCollection |
||
42 | */ |
||
43 | protected $labels; |
||
44 | |||
45 | /** |
||
46 | * @param \stdClass $source |
||
47 | */ |
||
48 | 1 | public function __construct(\stdClass $source) |
|
52 | |||
53 | /** |
||
54 | * @return \stdClass |
||
55 | */ |
||
56 | public function getRawData() |
||
60 | 1 | ||
61 | /** |
||
62 | * The documentary field id |
||
63 | * |
||
64 | * @return integer |
||
65 | */ |
||
66 | public function getId() |
||
70 | 1 | ||
71 | /** |
||
72 | * The documentary field metadata namespace |
||
73 | * |
||
74 | * @return string |
||
75 | */ |
||
76 | public function getNamespace() |
||
80 | 1 | ||
81 | /** |
||
82 | * The documentary field metadata source |
||
83 | * |
||
84 | * @return string |
||
85 | */ |
||
86 | public function getSource() |
||
90 | 1 | ||
91 | /** |
||
92 | * The documentary field metadata tagname |
||
93 | * |
||
94 | * @return string |
||
95 | */ |
||
96 | public function getTagName() |
||
100 | 1 | ||
101 | /** |
||
102 | * The documentary field name |
||
103 | * |
||
104 | * @return string |
||
105 | */ |
||
106 | public function getName() |
||
110 | 1 | ||
111 | /** |
||
112 | * The multi value field separator |
||
113 | * |
||
114 | * @return string |
||
115 | */ |
||
116 | public function getSeparator() |
||
120 | 1 | ||
121 | /** |
||
122 | * Get the associated thesaurus branch |
||
123 | * |
||
124 | * @return string |
||
125 | */ |
||
126 | public function getThesaurusBranch() |
||
130 | 1 | ||
131 | /** |
||
132 | * get the type of the field values |
||
133 | * |
||
134 | * @return string |
||
135 | */ |
||
136 | public function getType() |
||
140 | 1 | ||
141 | /** |
||
142 | * Tell whether the field is searchable |
||
143 | * |
||
144 | * @return Boolean |
||
145 | */ |
||
146 | public function isSearchable() |
||
150 | 1 | ||
151 | /** |
||
152 | * Tell whether the field is multivalued or not |
||
153 | * |
||
154 | * @return Boolean |
||
155 | */ |
||
156 | public function isMultivalued() |
||
160 | 1 | ||
161 | /** |
||
162 | * Tell whether the field is a read only field |
||
163 | * |
||
164 | * @return Boolean |
||
165 | */ |
||
166 | public function isReadonly() |
||
170 | 1 | ||
171 | /** |
||
172 | * Tell whether the field is required |
||
173 | * |
||
174 | * @return Boolean |
||
175 | */ |
||
176 | 1 | public function isRequired() |
|
180 | |||
181 | /** |
||
182 | * @return mixed |
||
183 | */ |
||
184 | public function getLabels() |
||
188 | } |
||
189 |