PHP 클래스 WPDKViewController

## 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
저자: =undo= ([email protected])
상속: extends WPDKObject
파일 보기 프로젝트 열기: wpxtreme/wpdk 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$__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

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

Create an instance of WPDKViewController class
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
리턴 WPDKViewController

_admin_head() 공개 메소드

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
부터: 1.4.21
public _admin_head ( )

admin_head() 공개 메소드

It is used by WPDKMenu for example, as 'admin_head-' action.
부터: 1.4.18
public admin_head ( )

admin_print_styles() 공개 메소드

Fires when styles are printed for a specific admin page based on $hook_suffix.
부터: 1.6.0
public admin_print_styles ( )

didHeadLoad() 공개 정적인 메소드

It is used by WPDKMenu for example, as 'admin_head-' action.
public static didHeadLoad ( )

display() 공개 메소드

Display the content of this view controller
public display ( )

html() 공개 메소드

Return the HTML markup content of this view
public html ( ) : string
리턴 string

initWithView() 공개 정적인 메소드

Return an instance of WPDKViewController class. This static method create a view controller with a view.
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.
리턴 boolean | WPDKViewController The view controller or FALSE if error

load() 공개 메소드

It is used by WPDKMenu for example, as 'load-' action.
부터: 1.4.18
public load ( )

willLoad() 공개 정적인 메소드

It is used by WPDKMenu for example, as 'load-' action.
public static willLoad ( )

프로퍼티 상세

$__version 공개적으로 프로퍼티

Override version
public string $__version
리턴 string

$id 공개적으로 프로퍼티

The unique id for this view controller
public string $id
리턴 string

$title 공개적으로 프로퍼티

The title of this view controller. This is displayed on top header
public string $title
리턴 string

$view 공개적으로 프로퍼티

The view stored in this property represents the root view for the view controller hierarchy.
public WPDKView $view
리턴 WPDKView

$viewHead 공개적으로 프로퍼티

An instance of WPDKHeaderView
public WPDKHeaderView $viewHead
리턴 WPDKHeaderView