onOffice WP Plugin

AdminPageFormSettingsMain extends AdminPageAjax
in package

Facade class for AdminPageForm*-classes

Table of Contents

ENQUEUE_DATA_MERGE  = 'merge'
EXCLUDE_FIELD  = 'exclude'
GET_PARAM_TYPE  = 'type'
PARAM_FORMID  = 'id'
$_formModels  : array<string|int, FormModel>
$_mappingTypeClass  : array<string|int, mixed>
$_pageSlug  : string
$_pContainer  : Container
$_pInstance  : AdminPageFormSettingsBase
__construct()  : mixed
ajax_action()  : mixed
checkForms()  : mixed
doExtraEnqueues()  : mixed
generatePageMainTitle()  : mixed
getEnqueueData()  : array<string|int, mixed>
getFormModelByGroupSlug()  : FormModel
getFormModels()  : array<string|int, FormModel>
getPageSlug()  : string
handleAdminNotices()  : mixed
initSubClassForGet()  : mixed
preOutput()  : mixed
render()  : mixed
renderContent()  : mixed
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>
configureAdminPage()  : mixed
getClassNameByType()  : string
initSubClass()  : mixed
initSubclassForAjax()  : mixed

Constants

ENQUEUE_DATA_MERGE

public mixed ENQUEUE_DATA_MERGE = 'merge'

Properties

$_mappingTypeClass

private array<string|int, mixed> $_mappingTypeClass = [\onOffice\WPlugin\Form::TYPE_CONTACT => \onOffice\WPlugin\Gui\AdminPageFormSettingsInquiry::class, \onOffice\WPlugin\Form::TYPE_APPLICANT_SEARCH => \onOffice\WPlugin\Gui\AdminPageFormSettingsApplicantSearch::class, \onOffice\WPlugin\Form::TYPE_INTEREST => \onOffice\WPlugin\Gui\AdminPageFormSettingsInquiry::class, \onOffice\WPlugin\Form::TYPE_OWNER => \onOffice\WPlugin\Gui\AdminPageFormSettingsInquiry::class]

Methods

__construct()

public __construct(string $pageSlug) : mixed
Parameters
$pageSlug : string
Tags
throws
Exception
Return values
mixed

checkForms()

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

preOutput()

public preOutput() : mixed
Return values
mixed

transformPostValues()

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

getClassNameByType()

private getClassNameByType(string $type) : string
Parameters
$type : string
Tags
throws
UnexpectedValueException
Return values
string

initSubClass()

private initSubClass([string $type = null ][, int $id = null ]) : mixed
Parameters
$type : string = null
$id : int = null
Return values
mixed

Search results