1 | <?php |
||
8 | class Hidden_Field extends Field { |
||
9 | |||
10 | protected $hidden = false; |
||
11 | |||
12 | /** |
||
13 | * Get hidden state |
||
14 | * |
||
15 | * @return bool |
||
16 | */ |
||
17 | public function get_hidden() { |
||
20 | |||
21 | /** |
||
22 | * This states configures if the field is shown in the backend. |
||
23 | * |
||
24 | * @param bool $hidden |
||
25 | * @return self $this |
||
26 | */ |
||
27 | public function set_hidden( $hidden = true ) { |
||
31 | |||
32 | /** |
||
33 | * Returns an array that holds the field data, suitable for JSON representation. |
||
34 | * |
||
35 | * @param bool $load Should the value be loaded from the database or use the value from the current instance. |
||
36 | * @return array |
||
37 | */ |
||
38 | public function to_json( $load ) { |
||
47 | } |
||
48 |