PHP 클래스 WPDKPreferencesView

저자: =undo= ([email protected])
상속: extends WPDKView
파일 보기 프로젝트 열기: wpxtreme/wpdk

공개 프로퍼티들

프로퍼티 타입 설명
$branch WPDKPreferencesBranch An instance of WPDKPreferencesBranch class
$preferences WPDKPreferences An instance of WPDKPreferences class

공개 메소드들

메소드 설명
__construct ( WPDKPreferences $preferences, string $property ) : WPDKPreferencesView Create an instance of WPDKPreferencesView class
buttonPage ( string $slug, string $referrer = '', string $post_type = 'page', string $combo_select = '' ) : string Return the HTML markup for a button Create/Edit for a post of type page.
buttonsUpdateReset ( ) : string Return the HTML markup for standard [Reset to default] and [Update] buttons. You can override this method to hide or change the default buttons on bottom form.
draw ( ) Display
fields ( WPDKPreferencesBranch $branch ) : array Override to return the array fields

메소드 상세

__construct() 공개 메소드

Create an instance of WPDKPreferencesView class
public __construct ( WPDKPreferences $preferences, string $property ) : WPDKPreferencesView
$preferences WPDKPreferences An instance of WPDKPreferences clas
$property string Preferences branch property name
리턴 WPDKPreferencesView

buttonPage() 공개 메소드

Return the HTML markup for a button Create/Edit for a post of type page.
public buttonPage ( string $slug, string $referrer = '', string $post_type = 'page', string $combo_select = '' ) : string
$slug string The page slug from preference. May be empty.
$referrer string Optional. A string used as get params whe edit post in order to display a button "Back to...". If youo set this params you have to manage the relative hook in edit post.
$post_type string Optional. Post type. Default 'page'.
$combo_select string Optional. ID of select combo from which get the selected post type. Default empty.
리턴 string

buttonsUpdateReset() 공개 메소드

Return the HTML markup for standard [Reset to default] and [Update] buttons. You can override this method to hide or change the default buttons on bottom form.
public buttonsUpdateReset ( ) : string
리턴 string

draw() 공개 메소드

Display
public draw ( )

fields() 공개 메소드

Override to return the array fields
public fields ( WPDKPreferencesBranch $branch ) : array
$branch WPDKPreferencesBranch An instance of preferences branch
리턴 array

프로퍼티 상세

$branch 공개적으로 프로퍼티

An instance of WPDKPreferencesBranch class
public WPDKPreferencesBranch $branch
리턴 WPDKPreferencesBranch

$preferences 공개적으로 프로퍼티

An instance of WPDKPreferences class
public WPDKPreferences $preferences
리턴 WPDKPreferences