프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$convert_type | string | The convert type. | |
$default_value | array | The default value. |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$counter | integer | Repeater counter number. | |
$exclude_properties | array | Exclude properties that is not allowed in a repeater. |
메소드 | 설명 | |
---|---|---|
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. | |
get_default_settings ( ) : array | Get default settings. | |
get_import_settings ( ) : array | Get import settings. | |
html ( ) | Render property html. | |
import_value ( mixed $value, string $slug, integer $post_id ) : array | Import value to the property. | |
load_value ( integer $value, string $repeater_slug, integer $post_id ) : array | Change value after it's loaded from the database and populate every property in the repeater with the right property type. | |
render_ajax_request ( ) | Render AJAX request. | |
render_repeater_rows_template ( ) | Render repeater row template. | |
update_value ( mixed $values, string $repeater_slug, integer $post_id ) : array | Update value before it's saved to the database. |
메소드 | 설명 | |
---|---|---|
get_child_slug ( string $repeater_slug, string $child_slug ) : string | Get child slug from the repeater slug. | |
get_results ( integer $value, string $repeater_slug, integer $post_id ) : array | Get results from the database. | |
get_row_results ( array $dbresults ) : array | Get row results. | |
get_settings_properties ( ) : array | Get settings properties. | |
layout ( string $layout ) : boolean | Check if the given layout is the layouted used. | |
load_child_properties ( array $results, Papi_Core_Property $property = null ) : array | Load child properties. | |
prepare_properties ( array $items ) : array | Prepare properties, get properties options object, check which properties that are allowed to use. | |
prepare_property_for_json ( Papi_Property $property ) : boolean | object | Prepare property for JSON. | |
remove_repeater_rows ( integer $post_id, string $repeater_slug ) | Remove all repeater rows from the database. | |
render_json_template ( string $slug ) | Render property JSON template. | |
render_properties ( array $row, array | boolean $value ) | Render properties. | |
render_repeater ( stdClass $options ) | Render repeater html. | |
render_repeater_head ( ) | Render repeater head. | |
render_repeater_rows ( ) | Render repeater rows. | |
setup_actions ( ) | Setup actions. |
public get_default_settings ( ) : array | ||
리턴 | array |
protected get_row_results ( array $dbresults ) : array | ||
$dbresults | array | |
리턴 | array |
protected get_settings_properties ( ) : array | ||
리턴 | array |
protected load_child_properties ( array $results, Papi_Core_Property $property = null ) : array | ||
$results | array | |
$property | Papi_Core_Property | |
리턴 | array |
protected prepare_properties ( array $items ) : array | ||
$items | array | |
리턴 | array |
protected prepare_property_for_json ( Papi_Property $property ) : boolean | object | ||
$property | Papi_Property | |
리턴 | boolean | object |
protected remove_repeater_rows ( integer $post_id, string $repeater_slug ) | ||
$post_id | integer | |
$repeater_slug | string |
protected render_json_template ( string $slug ) | ||
$slug | string |
protected render_repeater ( stdClass $options ) | ||
$options | stdClass |
public render_repeater_rows_template ( ) |
protected array $exclude_properties | ||
리턴 | array |