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'
EXCLUDE_FIELD
public
mixed
EXCLUDE_FIELD
= 'exclude'
GET_PARAM_TYPE
public
mixed
GET_PARAM_TYPE
= 'type'
PARAM_FORMID
public
mixed
PARAM_FORMID
= 'id'
Properties
$_formModels
private
array<string|int, FormModel>
$_formModels
= array()
$_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]
$_pageSlug
private
string
$_pageSlug
= null
$_pContainer
private
Container
$_pContainer
$_pInstance
private
AdminPageFormSettingsBase
$_pInstance
= null
Methods
__construct()
public
__construct(string $pageSlug) : mixed
Parameters
- $pageSlug : string
Tags
Return values
mixed —ajax_action()
public
ajax_action() : mixed
Return values
mixed —checkForms()
public
checkForms() : mixed
Return values
mixed —doExtraEnqueues()
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 —initSubClassForGet()
public
initSubClassForGet() : mixed
Return values
mixed —preOutput()
public
preOutput() : mixed
Return values
mixed —render()
public
render() : mixed
Return values
mixed —renderContent()
public
renderContent() : mixed
Return values
mixed —save_form()
Entry point for AJAX.
public
save_form() : mixed
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
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
Return values
array<string|int, mixed> —configureAdminPage()
private
configureAdminPage(AdminPageFormSettingsBase $pAdminPage, string $type) : mixed
Parameters
- $pAdminPage : AdminPageFormSettingsBase
- $type : string
Return values
mixed —getClassNameByType()
private
getClassNameByType(string $type) : string
Parameters
- $type : string
Tags
Return values
string —initSubClass()
private
initSubClass([string $type = null ][, int $id = null ]) : mixed
Parameters
- $type : string = null
- $id : int = null
Return values
mixed —initSubclassForAjax()
private
initSubclassForAjax() : mixed