PHP Класс TitanFrameworkOptionSortable

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

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

Свойство Тип Описание
$defaultSecondarySettings Default settings specific to this option

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

Метод Описание
__construct ( $settings, $owner ) Constructor
cleanValueForGetting ( string $value ) : string Cleans the raw value for getting
cleanValueForSaving ( string $value ) : string Cleans up the serialized value before saving
createSortableScript ( ) : void Creates the javascript needed for sortable to run
display ( ) : void Displays the option in admin panels and meta boxes
enqueueSortable ( ) : void Enqueues the jQuery UI scripts
registerCustomizerControl ( $wp_customize, TitanFrameworkCustomizerSection $section, integer $priority = 1 ) : void Registers the theme customizer control, for displaying the option

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

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

Constructor
С версии: 1.4
public __construct ( $settings, $owner )

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

Cleans the raw value for getting
С версии: 1.4
public cleanValueForGetting ( string $value ) : string
$value string The raw value
Результат string The cleaned value

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

Cleans up the serialized value before saving
С версии: 1.4
public cleanValueForSaving ( string $value ) : string
$value string The serialized value
Результат string The cleaned value

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

Creates the javascript needed for sortable to run
С версии: 1.4
public static createSortableScript ( ) : void
Результат void

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

Displays the option in admin panels and meta boxes
С версии: 1.4
public display ( ) : void
Результат void

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

Enqueues the jQuery UI scripts
С версии: 1.4
public enqueueSortable ( ) : void
Результат void

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

Registers the theme customizer control, for displaying the option
С версии: 1.4
public registerCustomizerControl ( $wp_customize, TitanFrameworkCustomizerSection $section, integer $priority = 1 ) : void
$section TitanFrameworkCustomizerSection The section where this option will be placed
$priority integer The order of this control in the section
Результат void

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

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

Default settings specific to this option
public $defaultSecondarySettings