PHP Класс Carbon_Fields\Field\Time_Field

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

Открытые свойства

Свойство Тип Описание
$interval_step array Interval step for hours, minutes and seconds.
$restraints array Restraints for hours, minutes, seconds and dates.
$time_format string Time format.
$timepicker_options array Timepicker options.

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

Свойство Тип Описание
$timepicker_type string Timepicker type.

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

Метод Описание
admin_enqueue_scripts ( ) This method is called in the admin_enqueue_scripts action. It is called once per field type.
get_interval_step ( ) Returns the interval step.
get_restraints ( ) Returns the restraints.
get_time_format ( ) Returns the time format.
get_timepicker_options ( ) Returns the timepicker options.
set_interval_step ( $interval_steps ) Sets the interval step.
set_restraints ( $restraints ) Sets the restraints.
set_time_format ( $time_format ) Sets the time format.
set_timepicker_options ( $timepicker_options ) Sets other timepicker options.
template ( ) Prints the main Underscore template.
to_json ( boolean $load ) : array You can use this method to modify the field properties that are added to the JSON object.

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

admin_enqueue_scripts() публичный статический Метод

Enqueues field scripts and styles.
public static admin_enqueue_scripts ( )

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

Returns the interval step.
public get_interval_step ( )

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

Returns the restraints.
public get_restraints ( )

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

Returns the time format.
public get_time_format ( )

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

Returns the timepicker options.

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

Sets the interval step.
public set_interval_step ( $interval_steps )

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

Sets the restraints.
public set_restraints ( $restraints )

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

Sets the time format.
public set_time_format ( $time_format )

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

Sets other timepicker options.
public set_timepicker_options ( $timepicker_options )

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

Prints the main Underscore template.
public template ( )

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

The JSON object is used by the Backbone Model and the Underscore template.
public to_json ( boolean $load ) : array
$load boolean Should the value be loaded from the database or use the value from the current instance.
Результат array

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

$interval_step публичное свойство

Interval step for hours, minutes and seconds.
public array $interval_step
Результат array

$restraints публичное свойство

Restraints for hours, minutes, seconds and dates.
public array $restraints
Результат array

$time_format публичное свойство

Time format.
public string $time_format
Результат string

$timepicker_options публичное свойство

Timepicker options.
public array $timepicker_options
Результат array

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

Timepicker type.
protected string $timepicker_type
Результат string