@@ -144,6 +144,9 @@ |
||
| 144 | 144 | $this->assertEquals(array('nl', 'fr', 'en'), $object->getBackendLocales()); |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | + /** |
|
| 148 | + * @return ContainerInterface |
|
| 149 | + */ |
|
| 147 | 150 | private function getContainer($map) |
| 148 | 151 | { |
| 149 | 152 | $this->container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface'); |
@@ -299,7 +299,7 @@ |
||
| 299 | 299 | /** |
| 300 | 300 | * Return entity mock |
| 301 | 301 | * |
| 302 | - * @return AbstractEntity |
|
| 302 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
| 303 | 303 | */ |
| 304 | 304 | public function getEntity() |
| 305 | 305 | { |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * Returns a list of functions to add to the existing list. |
| 19 | 19 | * |
| 20 | - * @return array An array of functions |
|
| 20 | + * @return \Twig_SimpleFunction[] An array of functions |
|
| 21 | 21 | */ |
| 22 | 22 | public function getFunctions() |
| 23 | 23 | { |
@@ -3,9 +3,7 @@ |
||
| 3 | 3 | namespace Kunstmaan\AdminBundle\Twig; |
| 4 | 4 | |
| 5 | 5 | use Twig_Environment; |
| 6 | - |
|
| 7 | 6 | use Kunstmaan\AdminBundle\Helper\Security\Acl\Permission\PermissionAdmin; |
| 8 | - |
|
| 9 | 7 | use Symfony\Component\Form\FormView; |
| 10 | 8 | |
| 11 | 9 | /** |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | /** |
| 13 | 13 | * Get Twig filters defined in this extension. |
| 14 | 14 | * |
| 15 | - * @return array |
|
| 15 | + * @return \Twig_SimpleFilter[] |
|
| 16 | 16 | */ |
| 17 | 17 | public function getFilters() |
| 18 | 18 | { |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | /** |
| 30 | 30 | * Get Twig functions defined in this extension. |
| 31 | 31 | * |
| 32 | - * @return array |
|
| 32 | + * @return \Twig_SimpleFunction[] |
|
| 33 | 33 | */ |
| 34 | 34 | public function getFunctions() |
| 35 | 35 | { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Kunstmaan\AdminBundle\Twig; |
| 4 | 4 | |
| 5 | 5 | use Kunstmaan\AdminBundle\Helper\FormHelper; |
| 6 | - |
|
| 7 | 6 | use Symfony\Component\Form\FormView; |
| 8 | 7 | |
| 9 | 8 | /** |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Kunstmaan\AdminBundle\Twig; |
| 4 | 4 | |
| 5 | -use Twig_Environment; |
|
| 6 | 5 | use Twig_Extension; |
| 7 | 6 | |
| 8 | 7 | /** |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * Returns a list of functions to add to the existing list. |
| 19 | 19 | * |
| 20 | - * @return array An array of functions |
|
| 20 | + * @return \Twig_SimpleFunction[] An array of functions |
|
| 21 | 21 | */ |
| 22 | 22 | public function getFunctions() |
| 23 | 23 | { |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | } |
| 247 | 247 | |
| 248 | 248 | /** |
| 249 | - * @return array |
|
| 249 | + * @return ItemAction\ItemActionInterface[] |
|
| 250 | 250 | */ |
| 251 | 251 | public function getItemActions() |
| 252 | 252 | { |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | } |
| 271 | 271 | |
| 272 | 272 | /** |
| 273 | - * @return array |
|
| 273 | + * @return ListAction\ListActionInterface[] |
|
| 274 | 274 | */ |
| 275 | 275 | public function getListActions() |
| 276 | 276 | { |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | } |
| 279 | 279 | |
| 280 | 280 | /** |
| 281 | - * @return array |
|
| 281 | + * @return BulkAction\BulkActionInterface[] |
|
| 282 | 282 | */ |
| 283 | 283 | public function getBulkActions() |
| 284 | 284 | { |
@@ -3,9 +3,7 @@ |
||
| 3 | 3 | namespace Kunstmaan\AdminListBundle\AdminList; |
| 4 | 4 | |
| 5 | 5 | use Kunstmaan\AdminListBundle\AdminList\Configurator\AdminListConfiguratorInterface; |
| 6 | - |
|
| 7 | 6 | use Symfony\Component\HttpFoundation\Request; |
| 8 | - |
|
| 9 | 7 | use Pagerfanta\Pagerfanta; |
| 10 | 8 | |
| 11 | 9 | /** |
@@ -24,16 +24,19 @@ discard block |
||
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * Configure the fields you can filter on |
| 27 | + * @return void |
|
| 27 | 28 | */ |
| 28 | 29 | public function buildFilters(); |
| 29 | 30 | |
| 30 | 31 | /** |
| 31 | 32 | * Configure the actions for each item |
| 33 | + * @return void |
|
| 32 | 34 | */ |
| 33 | 35 | public function buildItemActions(); |
| 34 | 36 | |
| 35 | 37 | /** |
| 36 | 38 | * Configure the actions that can be executed on the whole list |
| 39 | + * @return void |
|
| 37 | 40 | */ |
| 38 | 41 | public function buildListActions(); |
| 39 | 42 | |
@@ -94,6 +97,9 @@ discard block |
||
| 94 | 97 | */ |
| 95 | 98 | public function canEdit($item); |
| 96 | 99 | |
| 100 | + /** |
|
| 101 | + * @return boolean |
|
| 102 | + */ |
|
| 97 | 103 | public function canView($item); |
| 98 | 104 | /** |
| 99 | 105 | * Configure if it's possible to delete the given $item |
@@ -226,6 +232,7 @@ discard block |
||
| 226 | 232 | * Bind request |
| 227 | 233 | * |
| 228 | 234 | * @param Request $request |
| 235 | + * @return void |
|
| 229 | 236 | */ |
| 230 | 237 | public function bindRequest(Request $request); |
| 231 | 238 | |
@@ -6,15 +6,30 @@ |
||
| 6 | 6 | { |
| 7 | 7 | public function getExportFields(); |
| 8 | 8 | |
| 9 | + /** |
|
| 10 | + * @param string $header |
|
| 11 | + */ |
|
| 9 | 12 | public function addExportField($name, $header); |
| 10 | 13 | |
| 14 | + /** |
|
| 15 | + * @return void |
|
| 16 | + */ |
|
| 11 | 17 | public function buildIterator(); |
| 12 | 18 | |
| 13 | 19 | public function getIterator(); |
| 14 | 20 | |
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 15 | 24 | public function buildFilters(); |
| 16 | 25 | |
| 26 | + /** |
|
| 27 | + * @return void |
|
| 28 | + */ |
|
| 17 | 29 | public function buildExportFields(); |
| 18 | 30 | |
| 31 | + /** |
|
| 32 | + * @param string $columnName |
|
| 33 | + */ |
|
| 19 | 34 | public function getStringValue($item, $columnName); |
| 20 | 35 | } |