AdminPageEstateListSettingsBase
extends AdminPageSettingsBase
in package
Tags
Table of Contents
- ENQUEUE_DATA_MERGE = 'merge'
- EXCLUDE_FIELD = 'exclude'
- FORM_RECORD_NAME = 'recordname'
- FORM_VIEW_DOCUMENT_TYPES = 'viewdocumenttypes'
- FORM_VIEW_FIELDS_CONFIG = 'viewfieldsconfig'
- FORM_VIEW_LAYOUT_DESIGN = 'viewlayoutdesign'
- FORM_VIEW_PICTURE_TYPES = 'viewpicturetypes'
- FORM_VIEW_RECORDS_FILTER = 'viewrecordsfilter'
- FORM_VIEW_RECORDS_SORTING = 'viewrecordssorting'
- FORM_VIEW_SORTABLE_FIELDS_CONFIG = 'viewSortableFieldsConfig'
- GET_PARAM_VIEWID = 'id'
- GET param for the view ID
- POST_RECORD_ID = 'record_id'
- caution: also needs to be set in Javascript
- VIEW_SAVE_FAIL_MESSAGE = 'view_save_fail_message'
- VIEW_SAVE_SUCCESSFUL_MESSAGE = 'view_save_success_message'
- $_formModels : array<string|int, FormModel>
- $_listViewId : int
- $_pageSlug : string
- $_pageTitle : string
- $_pContainer : Container
- __construct() : mixed
- addAdminNoticeWrapper() : mixed
- rest will be added via js
- ajax_action() : 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>
- getListViewId() : string
- getPageSlug() : string
- handleAdminNotices() : mixed
- preOutput() : mixed
- render() : mixed
- renderContent() : mixed
- save_form() : mixed
- Entry point for AJAX.
- transformPostValues() : array<string|int, mixed>
- addFieldsConfiguration() : mixed
- addFormModel() : mixed
- addOrderValues() : array<string|int, mixed>
- addSortableFieldsList() : mixed
- buildForms() : mixed
- checkFixedValues() : bool
- Check values here, throw \Exception if anything is wrong
- cleanPreviousBoxes() : mixed
- createMetaBoxByForm() : mixed
- generateAccordionBoxes() : mixed
- generateGroupSlugByModuleCategory() : string
- generateMetaBoxes() : mixed
- getContainer() : Container
- getPageTitle() : string
- getResponseMessagekey() : string
- prepareRelationValues() : array<string|int, mixed>
- prepareValues() : mixed
- readFieldnamesByContent() : array<string|int, mixed>
- sanitizeShortcodeName() : string
- following characters are compatible across all platforms: Upper-case and lower-case letters: A-Z a-z (+ Umlaut) Digits: 0-9 Underscore: _
- setFixedValues() : array<string|int, mixed>
- setPageTitle() : mixed
- setRecordsPerPage() : array<string|int, mixed>
- updateValues() : mixed
- validate() : mixed
Constants
ENQUEUE_DATA_MERGE
public
mixed
ENQUEUE_DATA_MERGE
= 'merge'
EXCLUDE_FIELD
public
mixed
EXCLUDE_FIELD
= 'exclude'
FORM_RECORD_NAME
public
mixed
FORM_RECORD_NAME
= 'recordname'
FORM_VIEW_DOCUMENT_TYPES
public
mixed
FORM_VIEW_DOCUMENT_TYPES
= 'viewdocumenttypes'
FORM_VIEW_FIELDS_CONFIG
public
mixed
FORM_VIEW_FIELDS_CONFIG
= 'viewfieldsconfig'
FORM_VIEW_LAYOUT_DESIGN
public
mixed
FORM_VIEW_LAYOUT_DESIGN
= 'viewlayoutdesign'
FORM_VIEW_PICTURE_TYPES
public
mixed
FORM_VIEW_PICTURE_TYPES
= 'viewpicturetypes'
FORM_VIEW_RECORDS_FILTER
public
mixed
FORM_VIEW_RECORDS_FILTER
= 'viewrecordsfilter'
FORM_VIEW_RECORDS_SORTING
public
mixed
FORM_VIEW_RECORDS_SORTING
= 'viewrecordssorting'
FORM_VIEW_SORTABLE_FIELDS_CONFIG
public
mixed
FORM_VIEW_SORTABLE_FIELDS_CONFIG
= 'viewSortableFieldsConfig'
GET_PARAM_VIEWID
GET param for the view ID
public
mixed
GET_PARAM_VIEWID
= 'id'
POST_RECORD_ID
caution: also needs to be set in Javascript
public
mixed
POST_RECORD_ID
= 'record_id'
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()
$_listViewId
private
int
$_listViewId
= null
$_pageSlug
private
string
$_pageSlug
= null
$_pageTitle
private
string
$_pageTitle
= 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 —ajax_action()
public
ajax_action() : mixed
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> —getListViewId()
public
getListViewId() : string
Return values
string —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
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> —addFieldsConfiguration()
protected
addFieldsConfiguration(string|null $module, FormModelBuilder $pFormModelBuilder, array<string|int, mixed> $fieldNames[, bool $addModule = false ]) : mixed
Parameters
- $module : string|null
- $pFormModelBuilder : FormModelBuilder
- $fieldNames : array<string|int, mixed>
- $addModule : bool = false
Return values
mixed —addFormModel()
protected
addFormModel(FormModel $pFormModel) : mixed
Parameters
- $pFormModel : FormModel
Return values
mixed —addOrderValues()
protected
addOrderValues(array<string|int, mixed> $row, string $table) : array<string|int, mixed>
Parameters
- $row : array<string|int, mixed>
- $table : string
Return values
array<string|int, mixed> —addSortableFieldsList()
protected
addSortableFieldsList(array<string|int, mixed> $modules, FormModelBuilder $pFormModelBuilder[, string $htmlType = InputModelBase::HTML_TYPE_COMPLEX_SORTABLE_DETAIL_LIST ]) : mixed
Parameters
- $modules : array<string|int, mixed>
- $pFormModelBuilder : FormModelBuilder
- $htmlType : string = InputModelBase::HTML_TYPE_COMPLEX_SORTABLE_DETAIL_LIST
Return values
mixed —buildForms()
protected
abstract buildForms() : mixed
Return values
mixed —checkFixedValues()
Check values here, throw \Exception if anything is wrong
protected
checkFixedValues(array<string|int, mixed> $row) : bool
Parameters
- $row : array<string|int, mixed>
Return values
bool —cleanPreviousBoxes()
protected
final cleanPreviousBoxes() : mixed
Tags
Return values
mixed —createMetaBoxByForm()
protected
createMetaBoxByForm(FormModel $pFormModel[, string $position = 'left' ]) : mixed
Parameters
- $pFormModel : FormModel
- $position : string = 'left'
Return values
mixed —generateAccordionBoxes()
protected
generateAccordionBoxes() : mixed
Return values
mixed —generateGroupSlugByModuleCategory()
protected
generateGroupSlugByModuleCategory(string $module, string $category) : string
Parameters
- $module : string
- $category : string
Return values
string —generateMetaBoxes()
protected
generateMetaBoxes() : mixed
Return values
mixed —getContainer()
protected
getContainer() : Container
Return values
Container —getPageTitle()
protected
getPageTitle() : string
Return values
string —getResponseMessagekey()
protected
getResponseMessagekey(bool $result) : string
Parameters
- $result : bool
Return values
string —prepareRelationValues()
protected
prepareRelationValues(string $table, string $column, array<string|int, mixed> $values, int $recordId) : array<string|int, mixed>
Parameters
- $table : string
- $column : string
- $values : array<string|int, mixed>
- $recordId : int
Return values
array<string|int, mixed> —prepareValues()
protected
prepareValues(stdClass $pValues) : mixed
Parameters
- $pValues : stdClass
Return values
mixed —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> —sanitizeShortcodeName()
following characters are compatible across all platforms: Upper-case and lower-case letters: A-Z a-z (+ Umlaut) Digits: 0-9 Underscore: _
protected
sanitizeShortcodeName(string $name) : string
Parameters
- $name : string
Return values
string —setFixedValues()
protected
setFixedValues(array<string|int, mixed> $row) : array<string|int, mixed>
Parameters
- $row : array<string|int, mixed>
Return values
array<string|int, mixed> —setPageTitle()
protected
setPageTitle(string $pageTitle) : mixed
Parameters
- $pageTitle : string
Return values
mixed —setRecordsPerPage()
protected
setRecordsPerPage(array<string|int, mixed> $row, string $mainTableName) : array<string|int, mixed>
Parameters
- $row : array<string|int, mixed>
- $mainTableName : string
Return values
array<string|int, mixed> —updateValues()
protected
updateValues(array<string|int, mixed> $row, stdClass $pResult[, int $recordId = null ]) : mixed
Parameters
- $row : array<string|int, mixed>
- $pResult : stdClass
- $recordId : int = null
Return values
mixed —validate()
protected
abstract validate([mixed $recordId = null ]) : mixed
Parameters
- $recordId : mixed = null