PHP Class PHPFusion\CustomPage

ファイルを表示 Open project: php-fusion/PHP-Fusion

Public Methods

Method Description
customPage_form ( $data ) The HTML form
display_customPage_selector ( ) Displays Custom Page Selector
display_custom_page_admin ( )
getData ( ) : data
listPage ( ) List custom page administration table
load_customPage ( $id ) : array; Displays a single custom page data
query_customPage ( $id = null )

Protected Methods

Method Description
delete_customPage ( $page_id ) SQL delete page
set_customPage ( $data ) : array SQL update or save data
set_customPageLinks ( $data ) Set CustomPage Links into Navigation Bar
verify_customPage ( $id ) : boolean | string Authenticate the page ID is valid

Method Details

customPage_form() public static method

The HTML form
public static customPage_form ( $data )
$data

delete_customPage() protected method

SQL delete page
protected delete_customPage ( $page_id )
$page_id

display_customPage_selector() public static method

Displays Custom Page Selector
public static display_customPage_selector ( )

display_custom_page_admin() public method

getData() public method

public getData ( ) : data
return data array from object initial or constructor when overriden.

listPage() public static method

List custom page administration table
public static listPage ( )

load_customPage() public static method

Displays a single custom page data
public static load_customPage ( $id ) : array;
$id - page_id
return array;

query_customPage() public static method

public static query_customPage ( $id = null )

set_customPage() protected method

SQL update or save data
protected set_customPage ( $data ) : array
$data
return array

verify_customPage() protected method

Authenticate the page ID is valid
protected verify_customPage ( $id ) : boolean | string
$id
return boolean | string