Property | Type | Description | |
---|---|---|---|
$__version | string | Override version | |
$id | string | The unique id for this view controller | |
$title | string | The title of this view controller. This is displayed on top header | |
$view | WPDKView | The view stored in this property represents the root view for the view controller hierarchy. | |
$viewHead | WPDKHeaderView | An instance of WPDKHeaderView |
Method | Description | |
---|---|---|
__construct ( string $id, string $title ) : WPDKViewController | Create an instance of WPDKViewController class | |
_admin_head ( ) | This method is called when the head of this view controller is loaded by WordPress. | |
admin_head ( ) | This method is called when the head of this view controller is loaded by WordPress. | |
admin_print_styles ( ) | Fires when styles are printed for a specific admin page based on $hook_suffix. | |
didHeadLoad ( ) | This static method is called when the head of this view controller is loaded by WordPress. | |
display ( ) | Display the content of this view controller | |
html ( ) : string | Return the HTML markup content of this view | |
initWithView ( string $id, string $title, WPDKView $view ) : boolean | WPDKViewController | Return an instance of WPDKViewController class. This static method create a view controller with a view. | |
load ( ) | This method is called when the head of this view controller is loaded by WordPress. | |
willLoad ( ) | This static method is called when the head of this view controller is loaded by WordPress. |
public __construct ( string $id, string $title ) : WPDKViewController | ||
$id | string | The unique id for this view controller |
$title | string | The title of this view controller. This is displayed on top header |
return | WPDKViewController |
public _admin_head ( ) |
public admin_head ( ) |
public admin_print_styles ( ) |
public static didHeadLoad ( ) |
public static initWithView ( string $id, string $title, WPDKView $view ) : boolean | WPDKViewController | ||
$id | string | The unique id for this view controller |
$title | string | The title of this view controller. This is displayed on top header |
$view | WPDKView | A instance of WPDKView class. This will be a subview. |
return | boolean | WPDKViewController | The view controller or FALSE if error |
public static willLoad ( ) |
public string $title | ||
return | string |
public WPDKView $view | ||
return | WPDKView |