1 | <?php |
||
25 | class FieldIsEmptyCondition extends AbstractConditionItem |
||
26 | { |
||
27 | |||
28 | const CONDITION_NAME = 'fieldIsEmpty'; |
||
29 | |||
30 | /** |
||
31 | * @inheritdoc |
||
32 | * @var array |
||
33 | */ |
||
34 | protected static $javaScriptFiles = [ |
||
35 | 'EXT:formz/Resources/Public/JavaScript/Conditions/Formz.Condition.FieldIsEmpty.js' |
||
36 | ]; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | * @validate NotEmpty |
||
41 | */ |
||
42 | protected $fieldName; |
||
43 | |||
44 | /** |
||
45 | * @inheritdoc |
||
46 | */ |
||
47 | public function getCssResult() |
||
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | public function getJavaScriptResult() |
||
59 | |||
60 | /** |
||
61 | * @inheritdoc |
||
62 | */ |
||
63 | public function getPhpResult(FormInterface $form, AbstractFormValidator $formValidator) |
||
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getFieldName() |
||
77 | } |
||
78 |