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 |
core/Field/Text_Field.php 1 location
|
@@ 49-57 (lines=9) @@
|
| 46 |
|
* @param bool $load Should the value be loaded from the database or use the value from the current instance. |
| 47 |
|
* @return array |
| 48 |
|
*/ |
| 49 |
|
public function to_json( $load ) { |
| 50 |
|
$field_data = parent::to_json( $load ); |
| 51 |
|
|
| 52 |
|
$field_data = array_merge( $field_data, array( |
| 53 |
|
'placeholder' => $this->placeholder, |
| 54 |
|
'field_type' => $this->field_type |
| 55 |
|
) ); |
| 56 |
|
return $field_data; |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
} |
| 60 |
|
?> |