PHP Class APF_Demo_AdvancedUsage_Callback_FieldDefinition

Show file Open project: michaeluno/admin-page-framework

Public Properties

Property Type Description
$sPageSlug The page slug to add the tab and form elements.
$sSectionID The section slug to add to the tab.
$sTabSlug The tab slug to add to the page.

Public Methods

Method Description
__construct ( $oFactory ) Sets up a form section.
replyToRedefineExampleField ( $aField ) : array Field callback methods - for field definitions that require heavy tasks should be defined with the callback methods.
replyToRedefinePostTitleField ( $aField ) : array Field callback methods - for field definitions that require heavy tasks should be defined with the callback methods.

Private Methods

Method Description
_getPostTitles ( $sPostTypeSlug = 'post' ) : array

Method Details

__construct() public method

Sets up a form section.
public __construct ( $oFactory )

replyToRedefineExampleField() public method

Field callback methods - for field definitions that require heavy tasks should be defined with the callback methods.
public replyToRedefineExampleField ( $aField ) : array
return array

replyToRedefinePostTitleField() public method

Field callback methods - for field definitions that require heavy tasks should be defined with the callback methods.
public replyToRedefinePostTitleField ( $aField ) : array
return array

Property Details

$sPageSlug public property

The page slug to add the tab and form elements.
public $sPageSlug

$sSectionID public property

The section slug to add to the tab.
public $sSectionID

$sTabSlug public property

The tab slug to add to the page.
public $sTabSlug