1 | <?php |
||
24 | class TranslatableAdminExtension extends AbstractTranslatableAdminExtension |
||
25 | { |
||
26 | /** |
||
27 | * @var TranslatableListener |
||
28 | */ |
||
29 | protected $translatableListener; |
||
30 | |||
31 | public function __construct(TranslatableChecker $translatableChecker, TranslatableListener $translatableListener) |
||
36 | |||
37 | /** |
||
38 | * @param AdminInterface $admin |
||
|
|||
39 | * |
||
40 | * @return TranslatableListener |
||
41 | */ |
||
42 | protected function getTranslatableListener() |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function alterObject(AdminInterface $admin, $object) |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function configureQuery(AdminInterface $admin, ProxyQueryInterface $query, $context = 'list') |
||
69 | |||
70 | /** |
||
71 | * Search on normal field and on translation field |
||
72 | * To use with a doctrine_orm_callback filter type. |
||
73 | * |
||
74 | * @param ProxyQuery $queryBuilder |
||
75 | * @param string $alias |
||
76 | * @param string $field |
||
77 | * @param string $value |
||
78 | * |
||
79 | * @return bool |
||
80 | */ |
||
81 | public static function translationFieldFilter(ProxyQuery $queryBuilder, $alias, $field, $value) |
||
117 | } |
||
118 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.