onOffice WP Plugin

AdminPageEstateListSettings extends AdminPageEstateListSettingsBase
in package

Tags
url

http://www.onoffice.de

copyright

2003-2017, onOffice(R) GmbH

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_GEOFIELDS  = 'geofields'
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
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
renders the page, but using `echo`
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
Since checkboxes are only being submitted if checked they need to be reorganized
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'

FORM_VIEW_SORTABLE_FIELDS_CONFIG

public mixed FORM_VIEW_SORTABLE_FIELDS_CONFIG = 'viewSortableFieldsConfig'

POST_RECORD_ID

caution: also needs to be set in Javascript

public mixed POST_RECORD_ID = 'record_id'

VIEW_SAVE_SUCCESSFUL_MESSAGE

public mixed VIEW_SAVE_SUCCESSFUL_MESSAGE = 'view_save_success_message'

Properties

Methods

addAdminNoticeWrapper()

rest will be added via js

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

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>

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

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

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
global

array $wp_meta_boxes

Return values
mixed

createMetaBoxByForm()

protected createMetaBoxByForm(FormModel $pFormModel[, string $position = 'left' ]) : mixed
Parameters
$pFormModel : FormModel
$position : string = 'left'
Return values
mixed

generateGroupSlugByModuleCategory()

protected generateGroupSlugByModuleCategory(string $module, string $category) : string
Parameters
$module : string
$category : string
Return values
string

getContainer()

protected getContainer() : Container
Return values
Container

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()

Since checkboxes are only being submitted if checked they need to be reorganized

protected prepareValues(stdClass $pValues) : mixed
Parameters
$pValues : stdClass
Tags
todo

Examine booleans automatically

Return values
mixed

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>

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 abstract updateValues(array<string|int, mixed> $row, stdClass $pResult[, int $recordId = null ]) : mixed
Parameters
$row : array<string|int, mixed>
$pResult : stdClass

having the properties result and record_id

$recordId : int = null
Return values
mixed

Search results