PHP Класс fewbricks\acf\fields\repeater

Наследование: extends field
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( string $label, string $name, string $key, array $custom_settings = [] )
add_brick ( brick $brick )
add_field ( $arg )
add_flexible_content ( flexible_content $flexible_content )
add_repeater ( repeater $repeater ) : repeater
add_sub_field ( field $field_object )

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

Метод Описание
add_common_field ( string $common_field_array_key, string $key, array $settings = [] )

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

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

public __construct ( string $label, string $name, string $key, array $custom_settings = [] )
$label string The label that the field will get.
$name string The name that the field will get.
$key string The key that the field wil get. It is very important that this value is unique among all the keys across the entire site.
$custom_settings array Any custom settings that you want to set. A setting must be implemented in the ACF field class for it to have an effect. This array wil be merged with $base_settings in this class and then with the default settings in the ACF field class.

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

public add_brick ( brick $brick )
$brick fewbricks\bricks\brick

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

protected add_common_field ( string $common_field_array_key, string $key, array $settings = [] )
$common_field_array_key string A key corresponding to an item in the fewbricks_common_fields array
$key string A site wide unique key for the field
$settings array Anye extra settings to set on the field. Can be used to override existing settings as well.

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

public add_field ( $arg )
$arg

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

public add_flexible_content ( flexible_content $flexible_content )
$flexible_content flexible_content

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

public add_repeater ( repeater $repeater ) : repeater
$repeater repeater
Результат repeater $this

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

public add_sub_field ( field $field_object )
$field_object field