@@ -15,7 +15,6 @@ |
||
| 15 | 15 | use eZ\Publish\Core\MVC\Symfony\RequestStackAware; |
| 16 | 16 | use eZ\Publish\Core\MVC\Symfony\Routing\RouteReference; |
| 17 | 17 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
| 18 | -use Symfony\Component\HttpFoundation\Request; |
|
| 19 | 18 | |
| 20 | 19 | class RouteReferenceGenerator implements RouteReferenceGeneratorInterface |
| 21 | 20 | { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | use eZ\Publish\SPI\Persistence\Content\ContentInfo; |
| 5 | 5 | use eZ\Publish\SPI\Persistence\Content\Field; |
| 6 | 6 | use eZ\Publish\SPI\Persistence\Content\FieldValue; |
| 7 | -use eZ\Publish\SPI\Persistence\Content\Location; |
|
| 8 | 7 | use eZ\Publish\SPI\Persistence\Content\VersionInfo; |
| 9 | 8 | |
| 10 | 9 | $content = new Content(); |
@@ -361,7 +361,7 @@ discard block |
||
| 361 | 361 | * $languageCode. |
| 362 | 362 | * |
| 363 | 363 | * @param Type $contentType |
| 364 | - * @param mixed $fieldValue |
|
| 364 | + * @param Content\FieldValue $fieldValue |
|
| 365 | 365 | * @param string $languageCode |
| 366 | 366 | * |
| 367 | 367 | * @return Content |
@@ -480,8 +480,8 @@ discard block |
||
| 480 | 480 | /** |
| 481 | 481 | * Performs an update on $contentId in $contentVersion setting $field. |
| 482 | 482 | * |
| 483 | - * @param mixed $contentId |
|
| 484 | - * @param mixed $contentVersion |
|
| 483 | + * @param string $contentId |
|
| 484 | + * @param string $contentVersion |
|
| 485 | 485 | * @param Field $field |
| 486 | 486 | * |
| 487 | 487 | * @return Content |
@@ -213,6 +213,11 @@ |
||
| 213 | 213 | $this->assertFalse($normalizer->accept($input)); |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | + /** |
|
| 217 | + * @param string $documentElement |
|
| 218 | + * @param string $namespace |
|
| 219 | + * @param string $dtdPath |
|
| 220 | + */ |
|
| 216 | 221 | protected function getNormalizer($documentElement, $namespace, $dtdPath) |
| 217 | 222 | { |
| 218 | 223 | return new DocumentTypeDefinition($documentElement, $namespace, $dtdPath); |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | * Registers an eZ Publish field type. |
| 42 | 42 | * Field types are being registered as a closure so that they will be lazy loaded. |
| 43 | 43 | * |
| 44 | - * @param string $nameableFieldTypeServiceId The field type nameable service Id |
|
| 44 | + * @param string $fieldTypeServiceId The field type nameable service Id |
|
| 45 | 45 | * @param string $fieldTypeAlias The field type alias (e.g. "ezstring") |
| 46 | 46 | */ |
| 47 | 47 | public function registerNonNameableFieldType($fieldTypeServiceId, $fieldTypeAlias) |
@@ -762,7 +762,7 @@ discard block |
||
| 762 | 762 | /** |
| 763 | 763 | * Test for the loadLocationChildren() method. |
| 764 | 764 | * |
| 765 | - * @return \eZ\Publish\API\Repository\Values\Content\Location[] |
|
| 765 | + * @return LocationList |
|
| 766 | 766 | * |
| 767 | 767 | * @see \eZ\Publish\API\Repository\LocationService::loadLocationChildren($location, $offset) |
| 768 | 768 | * @depends eZ\Publish\API\Repository\Tests\LocationServiceTest::testLoadLocationChildren |
@@ -826,7 +826,7 @@ discard block |
||
| 826 | 826 | /** |
| 827 | 827 | * Test for the loadLocationChildren() method. |
| 828 | 828 | * |
| 829 | - * @return \eZ\Publish\API\Repository\Values\Content\Location[] |
|
| 829 | + * @return LocationList |
|
| 830 | 830 | * |
| 831 | 831 | * @see \eZ\Publish\API\Repository\LocationService::loadLocationChildren($location, $offset, $limit) |
| 832 | 832 | * @depends eZ\Publish\API\Repository\Tests\LocationServiceTest::testLoadLocationChildren |
@@ -855,7 +855,7 @@ discard block |
||
| 855 | 855 | /** |
| 856 | 856 | * Test for the loadLocationChildren() method. |
| 857 | 857 | * |
| 858 | - * @param \eZ\Publish\API\Repository\Values\Content\Location[] $locations |
|
| 858 | + * @param LocationList $locations |
|
| 859 | 859 | * |
| 860 | 860 | * @see \eZ\Publish\API\Repository\LocationService::loadLocationChildren($location, $offset, $limit) |
| 861 | 861 | * @depends eZ\Publish\API\Repository\Tests\LocationServiceTest::testLoadLocationChildrenWithOffsetAndLimit |
@@ -2127,7 +2127,7 @@ discard block |
||
| 2127 | 2127 | * Assert generated aliases to expected alias return. |
| 2128 | 2128 | * |
| 2129 | 2129 | * @param \eZ\Publish\API\Repository\URLAliasService $urlAliasService |
| 2130 | - * @param array $expectedAliases |
|
| 2130 | + * @param string[] $expectedAliases |
|
| 2131 | 2131 | */ |
| 2132 | 2132 | protected function assertGeneratedAliases($urlAliasService, array $expectedAliases) |
| 2133 | 2133 | { |
@@ -2139,7 +2139,7 @@ discard block |
||
| 2139 | 2139 | |
| 2140 | 2140 | /** |
| 2141 | 2141 | * @param \eZ\Publish\API\Repository\URLAliasService $urlAliasService |
| 2142 | - * @param array $expectedSubItemAliases |
|
| 2142 | + * @param string[] $expectedSubItemAliases |
|
| 2143 | 2143 | */ |
| 2144 | 2144 | private function assertAliasesBeforeCopy($urlAliasService, array $expectedSubItemAliases) |
| 2145 | 2145 | { |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | * |
| 114 | 114 | * @param string $path The content path |
| 115 | 115 | * @param array $fields |
| 116 | - * @param mixed $contentType The content type identifier |
|
| 116 | + * @param string $contentType The content type identifier |
|
| 117 | 117 | * |
| 118 | 118 | * @return mixed location id of the created content |
| 119 | 119 | */ |
@@ -147,6 +147,7 @@ discard block |
||
| 147 | 147 | |
| 148 | 148 | /** |
| 149 | 149 | * Maps the path of the content to it's name for later use. |
| 150 | + * @param string $path |
|
| 150 | 151 | */ |
| 151 | 152 | private function mapContentPath($path) |
| 152 | 153 | { |
@@ -228,6 +228,7 @@ |
||
| 228 | 228 | * |
| 229 | 229 | * @param string The field name |
| 230 | 230 | * @param mixed The field value |
| 231 | + * @param string|null $field |
|
| 231 | 232 | */ |
| 232 | 233 | private function createAndPublishContent($field, $value) |
| 233 | 234 | { |
@@ -64,9 +64,9 @@ discard block |
||
| 64 | 64 | * Search User with given username, optionally at given location. |
| 65 | 65 | * |
| 66 | 66 | * @param string $username name of User to search for |
| 67 | - * @param string $parentGroupLocationId where to search, in User Group tree |
|
| 67 | + * @param string $parentGroupId where to search, in User Group tree |
|
| 68 | 68 | * |
| 69 | - * @return User found |
|
| 69 | + * @return null|\eZ\Publish\API\Repository\Values\User\User found |
|
| 70 | 70 | */ |
| 71 | 71 | public function searchUserByLogin($username, $parentGroupId = null) |
| 72 | 72 | { |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | * @param string $name name of User Group to search for |
| 98 | 98 | * @param string $parentLocationId (optional) parent location id to search in |
| 99 | 99 | * |
| 100 | - * @return search results |
|
| 100 | + * @return \eZ\Publish\API\Repository\Values\Content\Search\SearchHit[] results |
|
| 101 | 101 | */ |
| 102 | 102 | public function searchUserGroups($name, $parentLocationId = null) |
| 103 | 103 | { |
@@ -120,12 +120,12 @@ discard block |
||
| 120 | 120 | /** |
| 121 | 121 | * Create user inside given User Group; DELETES existing User if login already exists! |
| 122 | 122 | * |
| 123 | - * @param $username username of the user to create |
|
| 124 | - * @param $email email address of user to create |
|
| 125 | - * @param $password account password for user to create |
|
| 126 | - * @param $parentGroup pathstring wherein to create user |
|
| 123 | + * @param string $username username of the user to create |
|
| 124 | + * @param string $email email address of user to create |
|
| 125 | + * @param string $password account password for user to create |
|
| 126 | + * @param \eZ\Publish\API\Repository\Values\User\UserGroup $parentGroup pathstring wherein to create user |
|
| 127 | 127 | * |
| 128 | - * @return eZ\Publish\API\Repository\Values\User\User |
|
| 128 | + * @return \eZ\Publish\API\Repository\Values\User\User |
|
| 129 | 129 | */ |
| 130 | 130 | protected function createUser($username, $email, $password, $parentGroup = null, $fields = array()) |
| 131 | 131 | { |
@@ -319,6 +319,9 @@ discard block |
||
| 319 | 319 | return false; |
| 320 | 320 | } |
| 321 | 321 | |
| 322 | + /** |
|
| 323 | + * @param integer $type |
|
| 324 | + */ |
|
| 322 | 325 | public function createPasswordHash($login, $password, $type) |
| 323 | 326 | { |
| 324 | 327 | switch ($type) { |