Class Papi_Property_Repeater
Repeater property that can repeat multiple properties.
- Papi_Core_Property
- Papi_Property
- Papi_Property_Repeater
Direct known subclasses
Methods summary
public
boolean
|
|
public
array
|
#
format_value( mixed $values, string $repeater_slug, integer $post_id )
Format the value of the property before it's returned to WordPress admin or the site. |
protected
string
|
#
get_child_slug( string $repeater_slug, string $child_slug )
Get child slug from the repeater slug. |
public
array
|
|
public
array
|
|
protected
array
|
#
get_results( integer $value, string $repeater_slug, integer $post_id )
Get results from the database. |
protected
array
|
|
protected
array
|
|
public
|
|
public
array
|
|
protected
boolean
|
|
public
array
|
#
load_value( integer $value, string $repeater_slug, integer $post_id )
Change value after it's loaded from the database and populate every property in the repeater with the right property type. |
protected
array
|
#
load_child_properties( array $results,
Load child properties. |
protected
array
|
#
prepare_properties( array $items )
Prepare properties, get properties options object, check which properties that are allowed to use. |
protected
boolean|object
|
|
protected
|
#
remove_repeater_rows( integer $post_id, string $repeater_slug )
Remove all repeater rows from the database. |
public
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
public
|
|
protected
|
|
public
array
|
#
update_value( mixed $values, string $repeater_slug, integer $post_id )
Update value before it's saved to the database. |
Methods inherited from Papi_Property
get_value()
,
is_option_page()
,
render()
,
render_description_html()
,
render_hidden_html()
,
render_label_html()
,
render_property_html()
,
render_row_html()
,
render_rules_json()
Methods inherited from Papi_Core_Property
__construct()
,
__get()
,
__isset()
,
__set()
,
__toString()
,
create()
,
current_user_can()
,
disabled()
,
display()
,
factory()
,
get_child_properties()
,
get_child_property()
,
get_meta_type()
,
get_option()
,
get_options()
,
get_post_id()
,
get_rules()
,
get_setting()
,
get_settings()
,
get_slug()
,
get_store()
,
html_id()
,
html_name()
,
import_setting()
,
import_settings()
,
match_slug()
,
prepare_value()
,
render_is_allowed_by_rules()
,
set_option()
,
set_options()
,
set_post_id()
,
set_setting()
,
set_store()
,
setup_conditional()
,
setup_filters()
Properties summary
protected
boolean
|
$cache
Cache child values or not. |
#
false
|
public
string
|
$convert_type
The convert type. |
#
'array'
|
protected
integer
|
$counter
Repeater counter number. |
#
0
|
public
array
|
$default_value
The default value. |
#
[]
|
protected
array
|
$exclude_properties
Exclude properties that is not allowed in a repeater. |
#
['flexible']
|