1 | <?php |
||
6 | class DMSJsonField extends CompositeField |
||
7 | { |
||
8 | public function __construct($name, $children = null) |
||
27 | |||
28 | /** |
||
29 | * Sets the name of the child object |
||
30 | * |
||
31 | * @param FormField $child |
||
32 | */ |
||
33 | private function setChildName($child) |
||
37 | |||
38 | public function hasData() |
||
42 | |||
43 | /** |
||
44 | * Override parent's behaviour as it's no longer required |
||
45 | * |
||
46 | * @param array $list |
||
47 | * @param bool $saveableOnly |
||
48 | */ |
||
49 | public function collateDataFields(&$list, $saveableOnly = false) |
||
52 | |||
53 | /** |
||
54 | * Recursively removed empty key-value pairs from $haystack |
||
55 | * |
||
56 | * @param $haystack |
||
57 | * |
||
58 | * @return mixed |
||
59 | */ |
||
60 | public function arrayFilterEmptyRecursive($haystack) |
||
73 | |||
74 | /** |
||
75 | * Overrides parent behaviour to remove empty elements |
||
76 | * |
||
77 | * @return mixed|null|string |
||
78 | */ |
||
79 | public function dataValue() |
||
91 | |||
92 | /** |
||
93 | * Sets the value |
||
94 | * @param mixed $value |
||
95 | * |
||
96 | * @return $this |
||
97 | */ |
||
98 | public function setValue($value) |
||
118 | } |
||
119 |