@@ -140,7 +140,7 @@ |
||
140 | 140 | /** |
141 | 141 | * Delete a language. |
142 | 142 | * |
143 | - * @param mixed $id |
|
143 | + * @param integer $id |
|
144 | 144 | */ |
145 | 145 | public function delete($id) |
146 | 146 | { |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * |
92 | 92 | * @todo optimize |
93 | 93 | * |
94 | - * @param mixed $remoteId |
|
94 | + * @param string $remoteId |
|
95 | 95 | * |
96 | 96 | * @return array |
97 | 97 | */ |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | /** |
247 | 247 | * Returns data for the first level children of the location identified by given $locationId. |
248 | 248 | * |
249 | - * @param mixed $locationId |
|
249 | + * @param integer $locationId |
|
250 | 250 | * |
251 | 251 | * @return array |
252 | 252 | */ |
@@ -542,10 +542,10 @@ discard block |
||
542 | 542 | * Make the location identified by $locationId1 refer to the Content |
543 | 543 | * referred to by $locationId2 and vice versa. |
544 | 544 | * |
545 | - * @param mixed $locationId1 |
|
546 | - * @param mixed $locationId2 |
|
545 | + * @param integer $locationId1 |
|
546 | + * @param integer $locationId2 |
|
547 | 547 | * |
548 | - * @return bool |
|
548 | + * @return boolean|null |
|
549 | 549 | */ |
550 | 550 | public function swap($locationId1, $locationId2) |
551 | 551 | { |
@@ -702,7 +702,7 @@ discard block |
||
702 | 702 | * Create an entry in the node assignment table. |
703 | 703 | * |
704 | 704 | * @param \eZ\Publish\SPI\Persistence\Content\Location\CreateStruct $createStruct |
705 | - * @param mixed $parentNodeId |
|
705 | + * @param string $parentNodeId |
|
706 | 706 | * @param int $type |
707 | 707 | */ |
708 | 708 | public function createNodeAssignment(CreateStruct $createStruct, $parentNodeId, $type = self::NODE_ASSIGNMENT_OP_CODE_CREATE_NOP) |
@@ -830,8 +830,8 @@ discard block |
||
830 | 830 | * |
831 | 831 | * Convert existing node assignments into real locations. |
832 | 832 | * |
833 | - * @param mixed $contentId |
|
834 | - * @param mixed $versionNo |
|
833 | + * @param integer $contentId |
|
834 | + * @param integer $versionNo |
|
835 | 835 | */ |
836 | 836 | public function createLocationsFromNodeAssignments($contentId, $versionNo) |
837 | 837 | { |
@@ -899,8 +899,8 @@ discard block |
||
899 | 899 | /** |
900 | 900 | * Updates all Locations of content identified with $contentId with $versionNo. |
901 | 901 | * |
902 | - * @param mixed $contentId |
|
903 | - * @param mixed $versionNo |
|
902 | + * @param integer $contentId |
|
903 | + * @param integer $versionNo |
|
904 | 904 | */ |
905 | 905 | public function updateLocationsContentVersionNo($contentId, $versionNo) |
906 | 906 | { |
@@ -1059,8 +1059,8 @@ discard block |
||
1059 | 1059 | * the node identified by given $locationId (current main node). |
1060 | 1060 | * Assumes that content has more than one location. |
1061 | 1061 | * |
1062 | - * @param mixed $contentId |
|
1063 | - * @param mixed $locationId |
|
1062 | + * @param integer $contentId |
|
1063 | + * @param integer $locationId |
|
1064 | 1064 | * |
1065 | 1065 | * @return array |
1066 | 1066 | */ |
@@ -1096,9 +1096,9 @@ discard block |
||
1096 | 1096 | * |
1097 | 1097 | * The associated content object is left untouched. |
1098 | 1098 | * |
1099 | - * @param mixed $locationId |
|
1099 | + * @param integer $locationId |
|
1100 | 1100 | * |
1101 | - * @return bool |
|
1101 | + * @return boolean|null |
|
1102 | 1102 | */ |
1103 | 1103 | public function trashLocation($locationId) |
1104 | 1104 | { |
@@ -1127,8 +1127,8 @@ discard block |
||
1127 | 1127 | * at the old position. If this is not possible ( because the old location |
1128 | 1128 | * does not exist any more) and exception is thrown. |
1129 | 1129 | * |
1130 | - * @param mixed $locationId |
|
1131 | - * @param mixed|null $newParentId |
|
1130 | + * @param integer $locationId |
|
1131 | + * @param integer $newParentId |
|
1132 | 1132 | * |
1133 | 1133 | * @return \eZ\Publish\SPI\Persistence\Content\Location |
1134 | 1134 | */ |
@@ -1302,10 +1302,10 @@ discard block |
||
1302 | 1302 | /** |
1303 | 1303 | * Set section on all content objects in the subtree. |
1304 | 1304 | * |
1305 | - * @param mixed $pathString |
|
1306 | - * @param mixed $sectionId |
|
1305 | + * @param string $pathString |
|
1306 | + * @param integer $sectionId |
|
1307 | 1307 | * |
1308 | - * @return bool |
|
1308 | + * @return boolean|null |
|
1309 | 1309 | */ |
1310 | 1310 | public function setSectionForSubtree($pathString, $sectionId) |
1311 | 1311 | { |
@@ -1371,10 +1371,10 @@ discard block |
||
1371 | 1371 | * Updates ezcontentobject_tree table for the given $contentId and eznode_assignment table for the given |
1372 | 1372 | * $contentId, $parentLocationId and $versionNo |
1373 | 1373 | * |
1374 | - * @param mixed $contentId |
|
1375 | - * @param mixed $locationId |
|
1376 | - * @param mixed $versionNo version number, needed to update eznode_assignment table |
|
1377 | - * @param mixed $parentLocationId parent location of location identified by $locationId, needed to update |
|
1374 | + * @param integer $contentId |
|
1375 | + * @param integer $locationId |
|
1376 | + * @param integer $versionNo version number, needed to update eznode_assignment table |
|
1377 | + * @param integer $parentLocationId parent location of location identified by $locationId, needed to update |
|
1378 | 1378 | * eznode_assignment table |
1379 | 1379 | */ |
1380 | 1380 | public function changeMainLocation($contentId, $locationId, $versionNo, $parentLocationId) |
@@ -210,8 +210,8 @@ discard block |
||
210 | 210 | * |
211 | 211 | * @todo update subtree modification time, optionally retain dates and set creator |
212 | 212 | * |
213 | - * @param mixed $sourceId |
|
214 | - * @param mixed $destinationParentId |
|
213 | + * @param integer $sourceId |
|
214 | + * @param integer $destinationParentId |
|
215 | 215 | * |
216 | 216 | * @return Location the newly created Location. |
217 | 217 | */ |
@@ -331,10 +331,10 @@ discard block |
||
331 | 331 | * destination, identified by $destinationParentId. Relations do not need |
332 | 332 | * to be updated, since they refer to Content. URLs are not touched. |
333 | 333 | * |
334 | - * @param mixed $sourceId |
|
335 | - * @param mixed $destinationParentId |
|
334 | + * @param integer $sourceId |
|
335 | + * @param integer $destinationParentId |
|
336 | 336 | * |
337 | - * @return bool |
|
337 | + * @return boolean|null |
|
338 | 338 | */ |
339 | 339 | public function move($sourceId, $destinationParentId) |
340 | 340 | { |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | /** |
374 | 374 | * Sets a location to be hidden, and it self + all children to invisible. |
375 | 375 | * |
376 | - * @param mixed $id Location ID |
|
376 | + * @param integer $id Location ID |
|
377 | 377 | */ |
378 | 378 | public function hide($id) |
379 | 379 | { |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | * Sets a location to be unhidden, and self + children to visible unless a parent is hiding the tree. |
387 | 387 | * If not make sure only children down to first hidden node is marked visible. |
388 | 388 | * |
389 | - * @param mixed $id |
|
389 | + * @param integer $id |
|
390 | 390 | */ |
391 | 391 | public function unHide($id) |
392 | 392 | { |
@@ -401,10 +401,10 @@ discard block |
||
401 | 401 | * Make the location identified by $locationId1 refer to the Content |
402 | 402 | * referred to by $locationId2 and vice versa. |
403 | 403 | * |
404 | - * @param mixed $locationId1 |
|
405 | - * @param mixed $locationId2 |
|
404 | + * @param integer $locationId1 |
|
405 | + * @param integer $locationId2 |
|
406 | 406 | * |
407 | - * @return bool |
|
407 | + * @return boolean|null |
|
408 | 408 | */ |
409 | 409 | public function swap($locationId1, $locationId2) |
410 | 410 | { |
@@ -451,9 +451,9 @@ discard block |
||
451 | 451 | * main Location will get the first of its other Locations assigned as the |
452 | 452 | * new main Location. |
453 | 453 | * |
454 | - * @param mixed $locationId |
|
454 | + * @param integer $locationId |
|
455 | 455 | * |
456 | - * @return bool |
|
456 | + * @return boolean|null |
|
457 | 457 | */ |
458 | 458 | public function removeSubtree($locationId) |
459 | 459 | { |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | * Set section on all content objects in the subtree. |
465 | 465 | * |
466 | 466 | * @param mixed $locationId |
467 | - * @param mixed $sectionId |
|
467 | + * @param integer $sectionId |
|
468 | 468 | */ |
469 | 469 | public function setSectionForSubtree($locationId, $sectionId) |
470 | 470 | { |
@@ -97,11 +97,11 @@ discard block |
||
97 | 97 | * Moves all locations in the subtree to the Trash. The associated content |
98 | 98 | * objects are left untouched. |
99 | 99 | * |
100 | - * @param mixed $locationId |
|
100 | + * @param integer $locationId |
|
101 | 101 | * |
102 | 102 | * @todo Handle field types actions |
103 | 103 | * |
104 | - * @return null|\eZ\Publish\SPI\Persistence\Content\Location\Trashed null if location was deleted, otherwise Trashed object |
|
104 | + * @return Trashed null if location was deleted, otherwise Trashed object |
|
105 | 105 | */ |
106 | 106 | public function trashSubtree($locationId) |
107 | 107 | { |
@@ -154,8 +154,8 @@ discard block |
||
154 | 154 | * |
155 | 155 | * Returns newly restored location Id. |
156 | 156 | * |
157 | - * @param mixed $trashedId |
|
158 | - * @param mixed $newParentId |
|
157 | + * @param integer $trashedId |
|
158 | + * @param integer $newParentId |
|
159 | 159 | * |
160 | 160 | * @return int Newly restored location id |
161 | 161 | * |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * Creates a Content from the given $struct and $currentVersionNo. |
59 | 59 | * |
60 | 60 | * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct |
61 | - * @param mixed $currentVersionNo |
|
61 | + * @param integer $currentVersionNo |
|
62 | 62 | * |
63 | 63 | * @return \eZ\Publish\SPI\Persistence\Content\ContentInfo |
64 | 64 | */ |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * Creates a new version for the given $struct and $versionNo. |
90 | 90 | * |
91 | 91 | * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct |
92 | - * @param mixed $versionNo |
|
92 | + * @param integer $versionNo |
|
93 | 93 | * |
94 | 94 | * @return \eZ\Publish\SPI\Persistence\Content\VersionInfo |
95 | 95 | */ |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | * Creates a new version for the given $content. |
124 | 124 | * |
125 | 125 | * @param \eZ\Publish\SPI\Persistence\Content $content |
126 | - * @param mixed $versionNo |
|
126 | + * @param integer $versionNo |
|
127 | 127 | * @param mixed $userId |
128 | 128 | * |
129 | 129 | * @return \eZ\Publish\SPI\Persistence\Content\VersionInfo |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | /** |
51 | 51 | * Loads data for an object state. |
52 | 52 | * |
53 | - * @param mixed $stateId |
|
53 | + * @param integer $stateId |
|
54 | 54 | * |
55 | 55 | * @return array |
56 | 56 | */ |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * Loads data for an object state by identifier. |
75 | 75 | * |
76 | 76 | * @param string $identifier |
77 | - * @param mixed $groupId |
|
77 | + * @param integer $groupId |
|
78 | 78 | * |
79 | 79 | * @return array |
80 | 80 | */ |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | /** |
104 | 104 | * Loads data for all object states belonging to group with $groupId ID. |
105 | 105 | * |
106 | - * @param mixed $groupId |
|
106 | + * @param integer $groupId |
|
107 | 107 | * |
108 | 108 | * @return array |
109 | 109 | */ |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | /** |
132 | 132 | * Loads data for an object state group. |
133 | 133 | * |
134 | - * @param mixed $groupId |
|
134 | + * @param integer $groupId |
|
135 | 135 | * |
136 | 136 | * @return array |
137 | 137 | */ |
@@ -455,7 +455,7 @@ discard block |
||
455 | 455 | /** |
456 | 456 | * Deletes the object state group identified by $groupId. |
457 | 457 | * |
458 | - * @param mixed $groupId |
|
458 | + * @param integer $groupId |
|
459 | 459 | */ |
460 | 460 | public function deleteObjectStateGroup($groupId) |
461 | 461 | { |
@@ -477,9 +477,9 @@ discard block |
||
477 | 477 | /** |
478 | 478 | * Sets the object state $stateId to content with $contentId ID. |
479 | 479 | * |
480 | - * @param mixed $contentId |
|
481 | - * @param mixed $groupId |
|
482 | - * @param mixed $stateId |
|
480 | + * @param integer $contentId |
|
481 | + * @param integer $groupId |
|
482 | + * @param integer $stateId |
|
483 | 483 | */ |
484 | 484 | public function setContentState($contentId, $groupId, $stateId) |
485 | 485 | { |
@@ -591,7 +591,7 @@ discard block |
||
591 | 591 | /** |
592 | 592 | * Returns the number of objects which are in this state. |
593 | 593 | * |
594 | - * @param mixed $stateId |
|
594 | + * @param integer $stateId |
|
595 | 595 | * |
596 | 596 | * @return int |
597 | 597 | */ |
@@ -620,7 +620,7 @@ discard block |
||
620 | 620 | /** |
621 | 621 | * Updates the object state priority to provided value. |
622 | 622 | * |
623 | - * @param mixed $stateId |
|
623 | + * @param integer $stateId |
|
624 | 624 | * @param int $priority |
625 | 625 | */ |
626 | 626 | public function updateObjectStatePriority($stateId, $priority) |
@@ -823,7 +823,7 @@ discard block |
||
823 | 823 | * Generates language mask from provided language codes |
824 | 824 | * Also sets always available bit. |
825 | 825 | * |
826 | - * @param array $languageCodes |
|
826 | + * @param string[] $languageCodes |
|
827 | 827 | * |
828 | 828 | * @return int |
829 | 829 | */ |
@@ -41,7 +41,7 @@ |
||
41 | 41 | * @param string $name |
42 | 42 | * @param string $identifier |
43 | 43 | * |
44 | - * @return int The ID of the new section |
|
44 | + * @return string The ID of the new section |
|
45 | 45 | */ |
46 | 46 | public function insertSection($name, $identifier) |
47 | 47 | { |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | * |
117 | 117 | * @param \eZ\Publish\SPI\Persistence\Content\Type\Group $group |
118 | 118 | * |
119 | - * @return mixed Group ID |
|
119 | + * @return string Group ID |
|
120 | 120 | */ |
121 | 121 | public function insertGroup(Group $group) |
122 | 122 | { |
@@ -409,8 +409,8 @@ discard block |
||
409 | 409 | /** |
410 | 410 | * Insert assignment of $typeId to $groupId. |
411 | 411 | * |
412 | - * @param mixed $groupId |
|
413 | - * @param mixed $typeId |
|
412 | + * @param integer $groupId |
|
413 | + * @param integer $typeId |
|
414 | 414 | * @param int $status |
415 | 415 | */ |
416 | 416 | public function insertGroupAssignment($groupId, $typeId, $status) |
@@ -441,8 +441,8 @@ discard block |
||
441 | 441 | /** |
442 | 442 | * Deletes a group assignments for a Type. |
443 | 443 | * |
444 | - * @param mixed $groupId |
|
445 | - * @param mixed $typeId |
|
444 | + * @param integer $groupId |
|
445 | + * @param integer $typeId |
|
446 | 446 | * @param int $status |
447 | 447 | */ |
448 | 448 | public function deleteGroupAssignment($groupId, $typeId, $status) |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | /** |
495 | 495 | * Loads data about Group with $identifier. |
496 | 496 | * |
497 | - * @param mixed $identifier |
|
497 | + * @param string $identifier |
|
498 | 498 | * |
499 | 499 | * @return string[][] |
500 | 500 | */ |
@@ -553,7 +553,7 @@ discard block |
||
553 | 553 | /** |
554 | 554 | * Loads data for all Types in $status in $groupId. |
555 | 555 | * |
556 | - * @param mixed $groupId |
|
556 | + * @param integer $groupId |
|
557 | 557 | * @param int $status |
558 | 558 | * |
559 | 559 | * @return string[][] |
@@ -590,7 +590,7 @@ discard block |
||
590 | 590 | /** |
591 | 591 | * Inserts a $fieldDefinition for $typeId. |
592 | 592 | * |
593 | - * @param mixed $typeId |
|
593 | + * @param integer $typeId |
|
594 | 594 | * @param int $status |
595 | 595 | * @param \eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition |
596 | 596 | * @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition $storageFieldDef |
@@ -751,9 +751,9 @@ discard block |
||
751 | 751 | /** |
752 | 752 | * Deletes a field definition. |
753 | 753 | * |
754 | - * @param mixed $typeId |
|
754 | + * @param integer $typeId |
|
755 | 755 | * @param int $status |
756 | - * @param mixed $fieldDefinitionId |
|
756 | + * @param integer $fieldDefinitionId |
|
757 | 757 | */ |
758 | 758 | public function deleteFieldDefinition($typeId, $status, $fieldDefinitionId) |
759 | 759 | { |
@@ -784,7 +784,7 @@ discard block |
||
784 | 784 | /** |
785 | 785 | * Updates a $fieldDefinition for $typeId. |
786 | 786 | * |
787 | - * @param mixed $typeId |
|
787 | + * @param integer $typeId |
|
788 | 788 | * @param int $status |
789 | 789 | * @param \eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition |
790 | 790 | * @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition $storageFieldDef |
@@ -847,7 +847,7 @@ discard block |
||
847 | 847 | /** |
848 | 848 | * Update a type with $updateStruct. |
849 | 849 | * |
850 | - * @param mixed $typeId |
|
850 | + * @param integer $typeId |
|
851 | 851 | * @param int $status |
852 | 852 | * @param \eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct $updateStruct |
853 | 853 | */ |
@@ -880,7 +880,7 @@ discard block |
||
880 | 880 | /** |
881 | 881 | * Loads an array with data about $typeId in $status. |
882 | 882 | * |
883 | - * @param mixed $typeId |
|
883 | + * @param integer $typeId |
|
884 | 884 | * @param int $status |
885 | 885 | * |
886 | 886 | * @return array Data rows. |
@@ -940,7 +940,7 @@ discard block |
||
940 | 940 | * Loads an array with data about the type referred to by $remoteId in |
941 | 941 | * $status. |
942 | 942 | * |
943 | - * @param mixed $remoteId |
|
943 | + * @param string $remoteId |
|
944 | 944 | * @param int $status |
945 | 945 | * |
946 | 946 | * @return array(int=>array(string=>mixed)) Data rows. |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | /** |
72 | 72 | * @param \eZ\Publish\SPI\Persistence\Content\Type\Group\CreateStruct $createStruct |
73 | 73 | * |
74 | - * @return Group |
|
74 | + * @return Type\Group |
|
75 | 75 | */ |
76 | 76 | public function createGroup(GroupCreateStruct $createStruct) |
77 | 77 | { |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | } |
139 | 139 | |
140 | 140 | /** |
141 | - * @return Group[] |
|
141 | + * @return Type\Group[] |
|
142 | 142 | */ |
143 | 143 | public function loadAllGroups() |
144 | 144 | { |