PHP Класс WPDKPreferencesView

Автор: =undo= ([email protected])
Наследование: extends WPDKView
Показать файл Открыть проект

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

Свойство Тип Описание
$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