onOffice WP Plugin

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'

Properties

Methods

__construct()

public __construct(string $pageSlug) : mixed
Parameters
$pageSlug : string
Tags
throws
Exception
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>

getPageSlug()

public getPageSlug() : string
Return values
string

handleAdminNotices()

public handleAdminNotices() : mixed
Return values
mixed

preOutput()

public preOutput() : 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
url

https://codex.wordpress.org/AJAX_in_Plugins

Return values
mixed

transformPostValues()

public transformPostValues() : array<string|int, mixed>
Return values
array<string|int, 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
Tags
deprecated

use FieldsCollectionToContentFieldLabelArrayConverter instead

Return values
array<string|int, mixed>

Search results