PHP Класс Papi_Core_Data_Handler, papi

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$overwrite array The fields that should be overwritten.

Открытые методы

Метод Описание
__construct ( ) The constructor.

Защищенные методы

Метод Описание
decode_property ( string $key, string $value ) : mixed Decode property.
get_post_data ( string $pattern = '/^papi\_.*/' ) : array Get post data.
get_pre_data ( ) Get pre data that should be saved before all properties data.
get_pre_deep_keys_value ( array $arr ) : array Pre get deep keys and value.
prepare_post_data ( mixed $data ) : mixed Prepare post data.
prepare_properties_data ( array $data = [], integer $post_id ) : array Prepare properties data for saving.
santize_data ( mixed $value ) : mixed Sanitize data before saving it.
setup_actions ( ) Setup actions.

Описание методов

__construct() публичный Метод

The constructor.
public __construct ( )

decode_property() защищенный Метод

Decode property.
protected decode_property ( string $key, string $value ) : mixed
$key string
$value string
Результат mixed

get_post_data() защищенный Метод

Get post data.
protected get_post_data ( string $pattern = '/^papi\_.*/' ) : array
$pattern string
Результат array

get_pre_data() защищенный Метод

Get pre data that should be saved before all properties data.
protected get_pre_data ( )

get_pre_deep_keys_value() защищенный Метод

Used for saving pre data when properties are in a flexible or repeater.
protected get_pre_deep_keys_value ( array $arr ) : array
$arr array
Результат array

prepare_post_data() защищенный Метод

Will decode property options recursive.
protected prepare_post_data ( mixed $data ) : mixed
$data mixed
Результат mixed

prepare_properties_data() защищенный Метод

Prepare properties data for saving.
protected prepare_properties_data ( array $data = [], integer $post_id ) : array
$data array
$post_id integer
Результат array

santize_data() защищенный Метод

Sanitize data before saving it.
protected santize_data ( mixed $value ) : mixed
$value mixed
Результат mixed

setup_actions() защищенный Метод

Setup actions.
protected setup_actions ( )

Описание свойств

$overwrite защищенное свойство

The fields that should be overwritten.
protected array $overwrite
Результат array