core/Field/Date_Field.php 1 location
|
@@ 22-30 (lines=9) @@
|
| 19 |
|
* @param bool $load Should the value be loaded from the database or use the value from the current instance. |
| 20 |
|
* @return array |
| 21 |
|
*/ |
| 22 |
|
public function to_json( $load ) { |
| 23 |
|
$field_data = parent::to_json( $load ); |
| 24 |
|
|
| 25 |
|
$field_data = array_merge( $field_data, array( |
| 26 |
|
'options' => $this->options, |
| 27 |
|
) ); |
| 28 |
|
|
| 29 |
|
return $field_data; |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** |
| 33 |
|
* The Underscore template of this field |
core/Field/Textarea_Field.php 1 location
|
@@ 43-52 (lines=10) @@
|
| 40 |
|
* @param bool $load Should the value be loaded from the database or use the value from the current instance. |
| 41 |
|
* @return array |
| 42 |
|
*/ |
| 43 |
|
public function to_json( $load ) { |
| 44 |
|
$field_data = parent::to_json( $load ); |
| 45 |
|
|
| 46 |
|
$field_data = array_merge( $field_data, array( |
| 47 |
|
'rows' => $this->rows, |
| 48 |
|
'height' => $this->height, |
| 49 |
|
) ); |
| 50 |
|
|
| 51 |
|
return $field_data; |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
/** |
| 55 |
|
* Underscore template of this field. |
core/Field/Html_Field.php 1 location
|
@@ 33-41 (lines=9) @@
|
| 30 |
|
* @param bool $load Should the value be loaded from the database or use the value from the current instance. |
| 31 |
|
* @return array |
| 32 |
|
*/ |
| 33 |
|
public function to_json( $load ) { |
| 34 |
|
$field_data = parent::to_json( $load ); |
| 35 |
|
|
| 36 |
|
$field_data = array_merge( $field_data, array( |
| 37 |
|
'html' => $this->field_html, |
| 38 |
|
) ); |
| 39 |
|
|
| 40 |
|
return $field_data; |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
/** |
| 44 |
|
* Underscore template of this field |