WPDK
1.5.0
WordPress Development Kit
|
Public Member Functions | |
__construct ($id, $title) | |
Construct. More... | |
admin_head () | |
Head. More... | |
_admin_head () | |
Head. More... | |
load () | |
Head. More... | |
html () | |
Get HTML markup content. More... | |
display () | |
Display the view controller. More... | |
Public Member Functions inherited from WPDKObject | |
__className () | |
Returns the class object. More... | |
__parentClass () | |
Returns the class object for the receiver’s superclass. More... | |
__isClass ($class) | |
Brief. More... | |
__isSubclassOfClass ($class) | |
Return TRUE if the receiving class is a subclass of —or identical to— $class, otherwise FALSE. More... | |
Static Public Member Functions | |
static | initWithView ($id, $title, $view) |
Init a view controller with a view. More... | |
static | didHeadLoad () |
Head. More... | |
static | willLoad () |
Head. More... | |
Static Public Member Functions inherited from WPDKObject | |
static | __delta ($last_version, $old_version) |
Object delta compare for combine. More... | |
static | delta ($last_version, $old_version) |
static | __dump ($var, $monitor=false) |
Dump a variable. More... | |
Data Fields | |
$__version = '0.9.22' | |
Version. More... | |
$id = '' | |
ID. More... | |
$title = '' | |
Title. More... | |
$view | |
The root view. More... | |
$viewHead | |
The header view. More... | |
Data Fields inherited from WPDKObject | |
$__version = '1.0.0' | |
The version number assigned to the class. More... | |
The WPDKViewCntroller is the main view likely WordPress
A view controller to allow to manage a standard WordPress view. A standard view is:
[ header with icon and title - optional button add] [single or more view]
Definition at line 23 of file wpdk-viewcontroller.php.
__construct | ( | $id, | |
$title | |||
) |
Construct.
Create an instance of WPDKViewController class
string | $id | The unique id for this view controller |
string | $title | The title of this view controller. This is displayed on top header |
Definition at line 80 of file wpdk-viewcontroller.php.
_admin_head | ( | ) |
Head.
This method is called when the head of this view controller is loaded by WordPress. It is used by WPDKMenu for example, as 'admin_head-' action. Internal view controller use this method to auto-load components. See for example WPDKPreferencesViewController
Definition at line 133 of file wpdk-viewcontroller.php.
admin_head | ( | ) |
Head.
This method is called when the head of this view controller is loaded by WordPress. It is used by WPDKMenu for example, as 'admin_head-' action.
Definition at line 120 of file wpdk-viewcontroller.php.
|
static |
Head.
This static method is called when the head of this view controller is loaded by WordPress. It is used by WPDKMenu for example, as 'admin_head-' action.
Definition at line 144 of file wpdk-viewcontroller.php.
display | ( | ) |
Display the view controller.
Display the content of this view controller
Definition at line 191 of file wpdk-viewcontroller.php.
html | ( | ) |
Get HTML markup content.
Return the HTML markup content of this view
Definition at line 179 of file wpdk-viewcontroller.php.
|
static |
Init a view controller with a view.
Return an instance of WPDKViewController class. This static method create a view controller with a view.
string | $id | The unique id for this view controller |
string | $title | The title of this view controller. This is displayed on top header |
WPDKView | $view | A instance of WPDKView class. This will be a subview. |
Definition at line 101 of file wpdk-viewcontroller.php.
load | ( | ) |
Head.
This method is called when the head of this view controller is loaded by WordPress. It is used by WPDKMenu for example, as 'load-' action.
Definition at line 156 of file wpdk-viewcontroller.php.
|
static |
Head.
This static method is called when the head of this view controller is loaded by WordPress. It is used by WPDKMenu for example, as 'load-' action.
Definition at line 167 of file wpdk-viewcontroller.php.
string $__version = '0.9.22' |
string $id = '' |
string $title = '' |
Title.
The title of this view controller. This is displayed on top header
Definition at line 50 of file wpdk-viewcontroller.php.
WPDKView $view |
The root view.
The view stored in this property represents the root view for the view controller hierarchy.
Definition at line 59 of file wpdk-viewcontroller.php.
WPDKHeaderView $viewHead |
The header view.
An instance of WPDKHeaderView
Definition at line 68 of file wpdk-viewcontroller.php.