PHP Class TitanFrameworkOptionSortable

Since: 1.4
Inheritance: extends TitanFrameworkOption
Afficher le fichier Open project: gambitph/titan-framework Class Usage Examples

Méthodes publiques

Свойство Type Description
$defaultSecondarySettings Default settings specific to this option

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

Constructor
Since: 1.4
public __construct ( $settings, $owner )

cleanValueForGetting() public méthode

Cleans the raw value for getting
Since: 1.4
public cleanValueForGetting ( string $value ) : string
$value string The raw value
Résultat string The cleaned value

cleanValueForSaving() public méthode

Cleans up the serialized value before saving
Since: 1.4
public cleanValueForSaving ( string $value ) : string
$value string The serialized value
Résultat string The cleaned value

createSortableScript() public static méthode

Creates the javascript needed for sortable to run
Since: 1.4
public static createSortableScript ( ) : void
Résultat void

display() public méthode

Displays the option in admin panels and meta boxes
Since: 1.4
public display ( ) : void
Résultat void

enqueueSortable() public méthode

Enqueues the jQuery UI scripts
Since: 1.4
public enqueueSortable ( ) : void
Résultat void

registerCustomizerControl() public méthode

Registers the theme customizer control, for displaying the option
Since: 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
Résultat void

Property Details

$defaultSecondarySettings public_oe property

Default settings specific to this option
public $defaultSecondarySettings