PHP Класс TitanFrameworkOptionAjaxButton

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

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

Свойство Тип Описание
$defaultSecondarySettings

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

Метод Описание
__construct ( $settings, $owner ) : void Constructor, fixes the settings to allow for multiple ajax buttons in a single option
ajaxLastSuccess ( ) : void This is last called when an ajax button is clicked. This just exist with a successful state, since doing nothing reads as an error with wp.ajax
ajaxSecurityChecker ( ) : void This is first called when an ajax button is clicked. This checks whether the nonce is valid and if we should continue;
createAjaxScript ( ) : void Prints the Javascript needed by ajax buttons. The script is only echoed once
display ( ) : void Renders the option
registerCustomizerControl ( $wp_customize, $section, $priority = 1 ) * Display for theme customizer

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

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

Constructor, fixes the settings to allow for multiple ajax buttons in a single option
public __construct ( $settings, $owner ) : void
$settings Array Option settings
$owner Object The container of the option
Результат void

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

This is last called when an ajax button is clicked. This just exist with a successful state, since doing nothing reads as an error with wp.ajax
public ajaxLastSuccess ( ) : void
Результат void

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

This is first called when an ajax button is clicked. This checks whether the nonce is valid and if we should continue;
public ajaxSecurityChecker ( ) : void
Результат void

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

Prints the Javascript needed by ajax buttons. The script is only echoed once
public static createAjaxScript ( ) : void
Результат void

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

Renders the option
public display ( ) : void
Результат void

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

* Display for theme customizer
public registerCustomizerControl ( $wp_customize, $section, $priority = 1 )

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

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

public $defaultSecondarySettings