프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$convert_type | string | The convert type. | |
$default_value | array | The default value. |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$counter | integer | Flexible repeater counter number. | |
$exclude_properties | array | Exclude properties that is not allowed in a repeater. | |
$layout_key | string | The layout key. | |
$layout_value_regex | string | Layout value regex. |
메소드 | 설명 | |
---|---|---|
delete_value ( string $slug, integer $post_id, string $type ) : boolean | Delete value from the database. | |
format_value ( mixed $values, string $repeater_slug, integer $post_id ) : array | Format the value of the property before it's returned to WordPress admin or the site. | |
load_value ( mixed $value, string $repeater_slug, integer $post_id ) : array | Change value after it's loaded from the database and populate every property in the flexible with the right property type. | |
render_ajax_request ( ) | Render AJAX request. | |
render_repeater_row_template ( ) | Render repeater row template. |
메소드 | 설명 | |
---|---|---|
get_json_id ( string $key, string $extra = '' ) : string | Generate layout slug. | |
get_layout ( string $slug ) : string | Get layout by slug. | |
get_layout_value ( string $layout ) : string | Get layout value. | |
get_results ( integer $value, string $repeater_slug, integer $post_id ) : array | Get results from the database. | |
get_settings_layouts ( ) : array | Get layouts. | |
is_layout_key ( string $key ) : boolean | Check if the given key is a valid layout key. | |
prepare_properties ( array $layouts ) : array | Prepare properties. | |
render_json_template ( string $slug ) | Render layout JSON template. | |
render_layout_input ( string $value ) | Render layout input. | |
render_properties ( array $row, array | boolean $value ) | Render properties. | |
render_repeater ( object $options ) | Render repeater html. | |
render_repeater_row ( ) | Render repeater row. | |
setup_actions ( ) | Setup actions. | |
valid_layout ( array $layout ) : boolean | Check if the layout is valid or not. |
protected get_layout ( string $slug ) : string | ||
$slug | string | |
리턴 | string |
protected get_layout_value ( string $layout ) : string | ||
$layout | string | |
리턴 | string |
protected is_layout_key ( string $key ) : boolean | ||
$key | string | |
리턴 | boolean |
protected prepare_properties ( array $layouts ) : array | ||
$layouts | array | |
리턴 | array |
protected render_json_template ( string $slug ) | ||
$slug | string |
protected render_layout_input ( string $value ) | ||
$value | string |
protected render_repeater ( object $options ) | ||
$options | object |
public render_repeater_row_template ( ) |
protected valid_layout ( array $layout ) : boolean | ||
$layout | array | |
리턴 | boolean |
protected array $exclude_properties | ||
리턴 | array |