1 | <?php |
||
25 | class FieldIsEmptyCondition extends AbstractConditionItem |
||
26 | { |
||
27 | const CONDITION_NAME = 'fieldIsEmpty'; |
||
28 | |||
29 | /** |
||
30 | * @inheritdoc |
||
31 | * @var array |
||
32 | */ |
||
33 | protected static $javaScriptFiles = [ |
||
34 | 'EXT:formz/Resources/Public/JavaScript/Conditions/Formz.Condition.FieldIsEmpty.js' |
||
35 | ]; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | * @validate NotEmpty |
||
40 | */ |
||
41 | protected $fieldName; |
||
42 | |||
43 | /** |
||
44 | * @inheritdoc |
||
45 | */ |
||
46 | public function getCssResult() |
||
50 | |||
51 | /** |
||
52 | * @inheritdoc |
||
53 | */ |
||
54 | public function getJavaScriptResult() |
||
58 | |||
59 | /** |
||
60 | * @inheritdoc |
||
61 | */ |
||
62 | public function getPhpResult(PhpConditionDataObject $dataObject) |
||
68 | |||
69 | /** |
||
70 | * @see validateConditionConfiguration() |
||
71 | * @throws InvalidConditionException |
||
72 | * @return bool |
||
73 | */ |
||
74 | protected function checkConditionConfiguration() |
||
87 | |||
88 | /** |
||
89 | * @return string |
||
90 | */ |
||
91 | public function getFieldName() |
||
95 | } |
||
96 |