Property | Type | Description | |
---|---|---|---|
$branch | WPDKPreferencesBranch | An instance of WPDKPreferencesBranch class | |
$preferences | WPDKPreferences | An instance of WPDKPreferences class |
Method | Description | |
---|---|---|
__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 |
public __construct ( WPDKPreferences $preferences, string $property ) : WPDKPreferencesView | ||
$preferences | WPDKPreferences | An instance of WPDKPreferences clas |
$property | string | Preferences branch property name |
return | WPDKPreferencesView |
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. |
return | string |
public buttonsUpdateReset ( ) : string | ||
return | string |
public WPDKPreferencesBranch $branch | ||
return | WPDKPreferencesBranch |