WPDK  1.5.0
WordPress Development Kit
 All Data Structures Files Functions Variables Pages
WPDKViewController Class Reference
Inheritance diagram for WPDKViewController:
WPDKObject WPDKjQueryTabsViewController WPDKPreferencesViewController

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...
 

Detailed Description

The WPDKViewCntroller is the main view likely WordPress

Overview

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]

Subclassing notes

Author
=undo= info@.nosp@m.wpxt.nosp@m.re.me
Date
2014-02-26
Version
0.9.22

Definition at line 23 of file wpdk-viewcontroller.php.

Constructor & Destructor Documentation

__construct (   $id,
  $title 
)

Construct.

Create an instance of WPDKViewController class

Parameters
string$idThe unique id for this view controller
string$titleThe title of this view controller. This is displayed on top header
Returns
WPDKViewController

Definition at line 80 of file wpdk-viewcontroller.php.

Member Function Documentation

_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

Since
1.4.21

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.

Since
1.4.18

Definition at line 120 of file wpdk-viewcontroller.php.

static didHeadLoad ( )
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

Returns
string

Definition at line 179 of file wpdk-viewcontroller.php.

static initWithView (   $id,
  $title,
  $view 
)
static

Init a view controller with a view.

Return an instance of WPDKViewController class. This static method create a view controller with a view.

Parameters
string$idThe unique id for this view controller
string$titleThe title of this view controller. This is displayed on top header
WPDKView$viewA instance of WPDKView class. This will be a subview.
Returns
bool|WPDKViewController The view controller or FALSE if error

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.

Since
1.4.18

Definition at line 156 of file wpdk-viewcontroller.php.

static willLoad ( )
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.

Field Documentation

string $__version = '0.9.22'

Version.

Override version

Definition at line 32 of file wpdk-viewcontroller.php.

string $id = ''

ID.

The unique id for this view controller

Definition at line 41 of file wpdk-viewcontroller.php.

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.


The documentation for this class was generated from the following file: