PHP 클래스 TitanFrameworkOptionAjaxButton

상속: extends TitanFrameworkOption
파일 보기 프로젝트 열기: gambitph/titan-framework 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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