1 | <?php |
||
33 | class BindingsObjectFactory implements BindingsObjectFactoryInterface |
||
34 | { |
||
35 | /** |
||
36 | * Create a AccessControlEntry for the given principal and permissions |
||
37 | * |
||
38 | * @param string $principal |
||
39 | * @param string[] $permissions |
||
40 | * @return AccessControlEntry |
||
41 | */ |
||
42 | 1 | public function createAccessControlEntry($principal, array $permissions) |
|
46 | |||
47 | /** |
||
48 | * @param AceInterface[] $aces |
||
49 | * @return AccessControlList |
||
50 | */ |
||
51 | 1 | public function createAccessControlList(array $aces) |
|
55 | |||
56 | /** |
||
57 | * TODO check if this method is required at all in the php implementation |
||
58 | * |
||
59 | * @param string $filename |
||
60 | * @param integer $length |
||
61 | * @param string $mimeType |
||
62 | * @param mixed $stream @TODO define datatype |
||
63 | * @return StreamInterface |
||
64 | */ |
||
65 | public function createContentStream($filename, $length, $mimeType, $stream) |
||
69 | |||
70 | /** |
||
71 | * @param PropertyDataInterface[] $propertiesData |
||
72 | * @return Properties |
||
73 | */ |
||
74 | 1 | public function createPropertiesData(array $propertiesData) |
|
80 | |||
81 | /** |
||
82 | * @param PropertyDefinitionInterface $propertyDefinition |
||
83 | * @param array $values |
||
84 | * @return PropertyDataInterface |
||
85 | */ |
||
86 | 9 | public function createPropertyData(PropertyDefinitionInterface $propertyDefinition, array $values) |
|
107 | |||
108 | /** |
||
109 | * @param string $id |
||
110 | * @param boolean[] $values |
||
111 | * @return PropertyBoolean |
||
112 | */ |
||
113 | 2 | public function createPropertyBooleanData($id, array $values) |
|
117 | |||
118 | /** |
||
119 | * @param string $id |
||
120 | * @param \DateTime[] $values |
||
121 | * @return PropertyDateTime |
||
122 | */ |
||
123 | 2 | public function createPropertyDateTimeData($id, array $values) |
|
127 | |||
128 | /** |
||
129 | * @param string $id |
||
130 | * @param float[] $values |
||
131 | * @return PropertyDecimal |
||
132 | */ |
||
133 | 2 | public function createPropertyDecimalData($id, array $values) |
|
137 | |||
138 | /** |
||
139 | * @param string $id |
||
140 | * @param string[] $values |
||
141 | * @return PropertyHtml |
||
142 | */ |
||
143 | 2 | public function createPropertyHtmlData($id, array $values) |
|
147 | |||
148 | /** |
||
149 | * @param string $id |
||
150 | * @param string[] $values |
||
151 | * @return PropertyId |
||
152 | */ |
||
153 | 2 | public function createPropertyIdData($id, array $values) |
|
157 | |||
158 | /** |
||
159 | * @param string $id |
||
160 | * @param integer[] $values |
||
161 | * @return PropertyInteger |
||
162 | */ |
||
163 | 2 | public function createPropertyIntegerData($id, array $values) |
|
167 | |||
168 | /** |
||
169 | * @param string $id |
||
170 | * @param string[] $values |
||
171 | * @return PropertyString |
||
172 | */ |
||
173 | 2 | public function createPropertyStringData($id, array $values) |
|
177 | |||
178 | /** |
||
179 | * @param string $id |
||
180 | * @param string[] $values |
||
181 | * @return PropertyUri |
||
182 | */ |
||
183 | 2 | public function createPropertyUriData($id, array $values) |
|
187 | |||
188 | /** |
||
189 | * Get a type definition object by its base type id |
||
190 | * |
||
191 | * @param string $baseTypeIdString |
||
192 | * @param string $typeId |
||
193 | * @return FolderTypeDefinition|DocumentTypeDefinition|RelationshipTypeDefinition|PolicyTypeDefinition|ItemTypeDefinition|SecondaryTypeDefinition |
||
194 | * @throws CmisInvalidArgumentException Exception is thrown if the base type exists in the BaseTypeId enumeration |
||
195 | * but is not implemented here. This could only happen if the base type enumeration is extended which requires |
||
196 | * a CMIS specification change. |
||
197 | */ |
||
198 | 1 | public function getTypeDefinitionByBaseTypeId($baseTypeIdString, $typeId) |
|
227 | } |
||
228 |