PHP Class TitanFrameworkOptionNumber

Inheritance: extends TitanFrameworkOption
Datei anzeigen Open project: gambitph/titan-framework Class Usage Examples

Public Properties

Property Type Description
$defaultSecondarySettings Default settings specific to this option

Public Methods

Method Description
__construct ( $settings, $owner ) Constructor
cleanValueForGetting ( string $value ) : mixes Cleans the value for getOption
cleanValueForSaving ( string $value ) : string Cleans up the serialized value before saving
createSliderScript ( ) : void Prints out the script the initializes the jQuery slider
display ( ) : void Displays the option for admin pages and meta boxes
enqueueSlider ( ) : 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 method

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

cleanValueForGetting() public method

Cleans the value for getOption
Since: 1.4
public cleanValueForGetting ( string $value ) : mixes
$value string The raw value of the option
return mixes The cleaned value

cleanValueForSaving() public method

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

createSliderScript() public static method

Prints out the script the initializes the jQuery slider
Since: 1.4
public static createSliderScript ( ) : void
return void

display() public method

Displays the option for admin pages and meta boxes
Since: 1.0
public display ( ) : void
return void

enqueueSlider() public method

Enqueues the jQuery UI scripts
Since: 1.4
public enqueueSlider ( ) : void
return void

registerCustomizerControl() public method

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

Property Details

$defaultSecondarySettings public_oe property

Default settings specific to this option
public $defaultSecondarySettings