AdminPageSimilarEstates
extends AdminPageAjax
in package
Table of Contents
- ENQUEUE_DATA_MERGE = 'merge'
- EXCLUDE_FIELD = 'exclude'
- FORM_VIEW_SIMILAR_ESTATES = 'viewsimilarestates'
- FORM_VIEW_SORTABLE_FIELDS_CONFIG = 'viewSortableFieldsConfig'
- VIEW_SAVE_FAIL_MESSAGE = 'view_save_fail_message'
- VIEW_SAVE_SUCCESSFUL_MESSAGE = 'view_save_success_message'
- $_formModels : array<string|int, FormModel>
- $_pageSlug : string
- $_pContainer : Container
- __construct() : mixed
- addAdminNoticeWrapper() : mixed
- rest will be added via js
- checkForms() : mixed
- doExtraEnqueues() : mixed
- generatePageMainTitle() : mixed
- getEnqueueData() : array<string|int, mixed>
- getFormModelByGroupSlug() : FormModel
- getFormModels() : array<string|int, FormModel>
- getPageSlug() : string
- handleAdminNotices() : 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
- generateAccordionBoxes() : mixed
- getContainer() : Container
- readFieldnamesByContent() : array<string|int, mixed>
- addFieldsConfiguration() : mixed
- generateMetaBoxes() : mixed
- getSpecialDivId() : string
- readAllFields() : FieldsCollection
Constants
ENQUEUE_DATA_MERGE
public
mixed
ENQUEUE_DATA_MERGE
= 'merge'
EXCLUDE_FIELD
public
mixed
EXCLUDE_FIELD
= 'exclude'
FORM_VIEW_SIMILAR_ESTATES
public
mixed
FORM_VIEW_SIMILAR_ESTATES
= 'viewsimilarestates'
FORM_VIEW_SORTABLE_FIELDS_CONFIG
public
mixed
FORM_VIEW_SORTABLE_FIELDS_CONFIG
= 'viewSortableFieldsConfig'
VIEW_SAVE_FAIL_MESSAGE
public
mixed
VIEW_SAVE_FAIL_MESSAGE
= 'view_save_fail_message'
VIEW_SAVE_SUCCESSFUL_MESSAGE
public
mixed
VIEW_SAVE_SUCCESSFUL_MESSAGE
= 'view_save_success_message'
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 —addAdminNoticeWrapper()
rest will be added via js
public
addAdminNoticeWrapper() : 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 —preOutput()
public
preOutput() : mixed
Return values
mixed —render()
public
render() : mixed
Return values
mixed —renderContent()
public
renderContent() : mixed
Tags
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 —generateAccordionBoxes()
protected
generateAccordionBoxes(FieldsCollection $pFieldsCollection) : mixed
Parameters
- $pFieldsCollection : FieldsCollection
Tags
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> —addFieldsConfiguration()
private
addFieldsConfiguration(string $module, $groupSlug, FormModelBuilderSimilarEstateSettings $pFormModelBuilder, array<string|int, mixed> $fieldNames) : mixed
Parameters
- $module : string
- $groupSlug :
- $pFormModelBuilder : FormModelBuilderSimilarEstateSettings
- $fieldNames : array<string|int, mixed>
Tags
Return values
mixed —generateMetaBoxes()
private
generateMetaBoxes() : mixed
Return values
mixed —getSpecialDivId()
private
static getSpecialDivId(string $module) : string
Parameters
- $module : string
Return values
string —readAllFields()
private
readAllFields() : FieldsCollection