AdminPageAjax
extends AdminPageBase
in package
Table of Contents
- ENQUEUE_DATA_MERGE = 'merge'
- EXCLUDE_FIELD = 'exclude'
- $_formModels : array<string|int, FormModel>
- $_pageSlug : string
- $_pContainer : Container
- __construct() : mixed
- checkForms() : mixed
- doExtraEnqueues() : mixed
- place extra wp_enqueue_script() and wp_enqueue_style() only for this page
- generatePageMainTitle() : mixed
- getEnqueueData() : array<string|int, mixed>
- getFormModelByGroupSlug() : FormModel
- getFormModels() : array<string|int, FormModel>
- getPageSlug() : string
- handleAdminNotices() : mixed
- preOutput() : mixed
- render() : mixed
- renderContent() : mixed
- renders the page, but using `echo`
- save_form() : mixed
- Entry point for AJAX.
- transformPostValues() : array<string|int, mixed>
- addFormModel() : mixed
- buildForms() : mixed
- createMetaBoxByForm() : mixed
- getContainer() : Container
- readFieldnamesByContent() : array<string|int, mixed>
Constants
ENQUEUE_DATA_MERGE
public
mixed
ENQUEUE_DATA_MERGE
= 'merge'
EXCLUDE_FIELD
public
mixed
EXCLUDE_FIELD
= 'exclude'
Properties
$_formModels
private
array<string|int, FormModel>
$_formModels
= array()
$_pageSlug
private
string
$_pageSlug
= null
$_pContainer
private
Container
$_pContainer
Methods
__construct()
public
__construct(string $pageSlug) : mixed
Parameters
- $pageSlug : string
Tags
Return values
mixed —checkForms()
public
checkForms() : mixed
Return values
mixed —doExtraEnqueues()
place extra wp_enqueue_script() and wp_enqueue_style() only for this page
public
doExtraEnqueues() : mixed
Return values
mixed —generatePageMainTitle()
public
generatePageMainTitle(string $subTitle) : mixed
Parameters
- $subTitle : string
Return values
mixed —getEnqueueData()
public
getEnqueueData() : array<string|int, mixed>
Return values
array<string|int, mixed> —getFormModelByGroupSlug()
public
getFormModelByGroupSlug(string $groupSlug) : FormModel
Parameters
- $groupSlug : string
Return values
FormModel —getFormModels()
public
getFormModels() : array<string|int, FormModel>
Return values
array<string|int, FormModel> —getPageSlug()
public
getPageSlug() : string
Return values
string —handleAdminNotices()
public
handleAdminNotices() : mixed
Return values
mixed —preOutput()
public
preOutput() : mixed
Return values
mixed —render()
public
render() : mixed
Return values
mixed —renderContent()
renders the page, but using `echo`
public
abstract renderContent() : mixed
Return values
mixed —save_form()
Entry point for AJAX.
public
abstract save_form() : mixed
Method should end with wp_die().
Tags
Return values
mixed —transformPostValues()
public
transformPostValues() : array<string|int, mixed>
Return values
array<string|int, mixed> —addFormModel()
protected
addFormModel(FormModel $pFormModel) : mixed
Parameters
- $pFormModel : FormModel
Return values
mixed —buildForms()
protected
abstract buildForms() : mixed
Return values
mixed —createMetaBoxByForm()
protected
createMetaBoxByForm(FormModel $pFormModel[, string $position = 'left' ]) : mixed
Parameters
- $pFormModel : FormModel
- $position : string = 'left'
Return values
mixed —getContainer()
protected
getContainer() : Container
Return values
Container —readFieldnamesByContent()
protected
readFieldnamesByContent(string $module[, FieldModuleCollection $pFieldsCollection = null ]) : array<string|int, mixed>
Parameters
- $module : string
- $pFieldsCollection : FieldModuleCollection = null