Admin_Form_Controller
extends Core_Servant_Properties
in package
Admin forms.
Tags
Table of Contents
- $filterSettings : mixed
- filter settings
- $request : array<string|int, mixed>
- Data set from _REQUEST
- $_actionHandlers : array<string|int, mixed>
- List of handlers' actions
- $_Admin_Form : Admin_Form
- Admin form
- $_Admin_Form_Actions : array<string|int, mixed>|null
- Admin_Form_Actions of Admin_Form
- $_Admin_Form_Fields : array<string|int, mixed>|null
- Admin_Form_Fields of Admin_Form
- $_Admin_Language : object
- Current language in administrator's center
- $_allowedProperties : array<string|int, mixed>
- Allowed object properties
- $_children : array<string|int, mixed>
- List of children entities
- $_content : string
- Content
- $_datasets : array<string|int, mixed>
- Dataset array
- $_externalReplace : array<string|int, mixed>
- List of external replaces
- $_filterCallbacks : array<string|int, mixed>
- List of filter handlers
- $_filters : array<string|int, mixed>
- List of filter handlers
- $_icon : array<string|int, mixed>
- 48 icons
- $_message : string
- Message text
- $_oAdmin_Form_Setting : Admin_Form_Setting_Model|null
- Admin_Form_Setting
- $_path : string
- Path
- $_propertiesValues : array<string|int, mixed>
- Properties values
- $_skin : bool
- Use skin
- $_totalCount : int
- Total founded items
- $_unlimitedProperties : bool
- Object has unlimited number of properties
- __construct() : mixed
- Constructor.
- action() : self
- Set action
- addAction() : mixed
- Добавление обработчика действия
- addAdditionalParam() : self
- Add additional param
- addAllowedProperties() : self
- Add additional allowed properties
- addAllowedProperty() : self
- Add additional allowed property
- addContent() : self
- Add content for Back-end form
- addDataset() : self
- Add dataset
- addEntity() : self
- Add entity
- addExternalReplace() : self
- Add external replacement Добавление внешней подстановки
- addFilter() : self
- Add handler of the filter Добавление обработчика фильтра
- addFilterCallback() : self
- Добавление функции обратного вызова, используемой для корректировки переданного значения
- addMessage() : self
- Add message for Back-end form
- addView() : self
- Add view
- ajax() : self
- Set AJAX
- applyEditable() : self
- Edit-in-Place in Back-end
- applyFormat() : mixed
- Применяет формат отображения $format к строке $str.
- changeAction() : object
- Apply external changes for actions
- changeField() : object
- Apply external changes for fields
- clearChecked() : self
- Clear checked items on the form
- clearContent() : self
- Clear content for Back-end form
- clearMessages() : self
- Clear messages for Back-end form
- convertLike() : string
- Convert %LIKE%
- create() : object
- Create new form controller
- current() : self
- Set current page
- deleteAdminFormActionById() : self
- Delete Admin_Form_Action by ID
- deleteAdminFormFieldById() : self
- Delete Admin_Form_Field by ID
- doReplaces() : string
- Apply external replaces in $subject
- execute() : mixed
- Executes the business logic.
- filterId() : self
- Set filterId
- filterSettings() : self
- Set filter settings
- formSettings() : self
- Apply form settings
- getAction() : string
- Get action
- getAdminActionLoadAjax() : string
- Backend callback method
- getAdminActionLoadHref() : string
- Backend callback method
- getAdminActionModalLoad() : string
- Backend callback method
- getAdminForm() : Admin_Form_Model
- Get Admin_Form
- getAdminFormActionById() : object|null
- Get Admin_Form_Action by ID
- getAdminFormActionByName() : object|null
- Get Admin_Form_Action by Name
- getAdminFormActions() : array<string|int, mixed>
- Get Admin_Form_Actions
- getAdminFormFieldById() : object|null
- Get Admin_Form_Field by ID
- getAdminFormFieldByName() : object|null
- Get Admin_Form_Field by Name
- getAdminFormFields() : array<string|int, mixed>
- Get Admin_Form_Fields
- getAdminLanguage() : Admin_Language_Model|null
- Get current Admin_Language
- getAdminLoadAjax() : string
- Получение кода вызова adminLoad для события onclick
- getAdminLoadHref() : string
- Получение кода вызова adminLoad для href
- getAdminSendForm() : string
- Получение кода вызова adminLoad для события onclick
- getAjax() : bool
- Get AJAX
- getBackgroundColorClass() : string
- Get background color class for object ID
- getChecked() : array<string|int, mixed>
- Get checked items on the form
- getChildren() : array<string|int, mixed>
- Get Children
- getContent() : string
- Get content message
- getCurrent() : int
- Get current page
- getDataset() : Admin_Form_Dataset|null
- Get dataset
- getDatasets() : array<string|int, mixed>
- Get datasets
- getExternalReplace() : array<string|int, mixed>
- Get external replacement
- getFieldName() : string
- Get field name, cut table name. E.g. table.field => field
- getFilterJson() : array<string|int, mixed>
- Get filter json
- getFilterSettings() : mixed
- getIcon() : string
- Get Icon for object ID
- getMessage() : string
- Get form message
- getModalLoad() : string
- Получение кода вызова modalLoad для события onclick
- getModule() : object
- Get module
- getOperation() : string
- Get operation
- getPageTitle() : string
- Get page <title>
- getPath() : string
- Get path
- getSortingField() : Admin_Form_Field_Model
- Get sorting field
- getTotalCount() : int
- Get count of total founded items
- getWindowId() : int
- Get window ID
- isCallable() : bool
- Check is callable method
- jQueryEscape() : string
- Escape jQuery selectors
- limit() : self
- Set limit of elements on page
- loadAdminFormActions() : self
- Load Admin_Form_Actions
- loadAdminFormFields() : self
- Load Admin_Form_Fields
- module() : self
- Set module
- operation() : self
- Set operation
- pageTitle() : self
- Set page <title>
- path() : self
- Set path
- perform() : mixed
- prepareString() : string
- Prepare string
- set() : self
- Run when writing data to inaccessible properties
- setAdditionalParam() : self
- Set additional param
- setAdminFormActions() : self
- Set Admin_Form_Actions
- setAdminFormFields() : self
- Set Admin_Form_Fields
- setDatasetConditions() : self
- Set dataset conditions
- setDatasetLimits() : self
- Set dataset limits
- setTotalCount() : self
- Set count of total founded items
- setUnlimitedProperties() : self
- Set unlimitedProperties
- setUp() : self
- Form setup
- show() : mixed
- Show built data
- showFilterField() : mixed
- Отображает поле фильтра (верхнего или основного)
- showSettings() : mixed
- skin() : self
- Show skin
- sortingDirection() : self
- Set sorting direction
- sortingFieldId() : self
- Set sorting field by ID
- title() : self
- Set <h1> for form
- view() : self
- Set view
- window() : self
- Set window ID
- _filterCallbackCheckbox() : mixed
- Filter checkbox callback
- _filterCallbackCounterparty() : mixed
- Filter counterparty callback
- _filterCallbackDate() : mixed
- Date-filed (from-to)
- _filterCallbackDateSingle() : mixed
- Date-filed (single-mode)
- _filterCallbackDatetime() : mixed
- Filter datetime callback
- _filterCallbackInput() : mixed
- Filter input callback
- _filterCallbackSelect() : mixed
- Filter select callback
- _filterCallbackSiteuser() : mixed
- Filter siteuser callback
- _filterCallbackSiteuserCompany() : mixed
- Filter counterparty callback
- _filterCallbackUser() : mixed
- Filter user callback
- _prepareAjaxRequest() : array<string|int, mixed>
- Подготовка массива опций для AJAX-запроса
- _printRow() : self
- Print array
Properties
$filterSettings
filter settings
public
mixed
$filterSettings
= array()
$request
Data set from _REQUEST
public
array<string|int, mixed>
$request
= array()
$_actionHandlers
List of handlers' actions
protected
array<string|int, mixed>
$_actionHandlers
= array()
$_Admin_Form
Admin form
protected
Admin_Form
$_Admin_Form
= \NULL
$_Admin_Form_Actions
Admin_Form_Actions of Admin_Form
protected
array<string|int, mixed>|null
$_Admin_Form_Actions
= \NULL
$_Admin_Form_Fields
Admin_Form_Fields of Admin_Form
protected
array<string|int, mixed>|null
$_Admin_Form_Fields
= \NULL
$_Admin_Language
Current language in administrator's center
protected
object
$_Admin_Language
= \NULL
$_allowedProperties
Allowed object properties
protected
array<string|int, mixed>
$_allowedProperties
= array(
//'request', // Нельзя, т.к. к request используется прямой доступ в различных index.php
// Page title <h1>
'title',
// Page title <title>
'pageTitle',
// Limits elements on page
'limit',
// Current page
'current',
// ID of sorting field
'sortingFieldId',
// Sorting direction
'sortingDirection',
// Current Filter Id
'filterId',
// Controller view
'view',
'viewList',
// Action name
'action',
// Action's operation e.g. "save" or "apply"
'operation',
// Array of checked items
'checked',
// Window ID
'windowId',
// Use AJAX
'ajax',
'module',
// Is showing operations necessary
'showOperations',
// String of additional parameters
'additionalParams',
// Set filter settings
//'filterSettings',
// Admin_View
'Admin_View',
)
$_children
List of children entities
protected
array<string|int, mixed>
$_children
= array()
$_content
Content
protected
string
$_content
= \NULL
$_datasets
Dataset array
protected
array<string|int, mixed>
$_datasets
= array()
$_externalReplace
List of external replaces
protected
array<string|int, mixed>
$_externalReplace
= array()
$_filterCallbacks
List of filter handlers
protected
array<string|int, mixed>
$_filterCallbacks
= array()
$_filters
List of filter handlers
protected
array<string|int, mixed>
$_filters
= array()
$_icon
48 icons
protected
static array<string|int, mixed>
$_icon
= array('fa fa-address-book', 'fa fa-address-card', 'fa fa-barcode', 'fa fa-bars', 'fa fa-beer', 'fa fa-bell', 'fa fa-bicycle', 'fa fa-binoculars', 'fa fa-birthday-cake', 'fa fa-bolt', 'fa fa-book', 'fa fa-bookmark', 'fa fa-briefcase', 'fa fa-bullseye', 'fa fa-camera', 'fa fa-car', 'fa fa-certificate', 'fa fa-cloud', 'fa fa-code', 'fa fa-coffee', 'fa fa-cube', 'fa fa-dashboard', 'fa fa-database', 'fa fa-dot-circle-o', 'fa fa-flask', 'fa fa-futbol-o', 'fa fa-gift', 'fa fa-glass', 'fa fa-heart', 'fa fa-hourglass', 'fa fa-leaf', 'fa fa-location-arrow', 'fa fa-magic', 'fa fa-magnet', 'fa fa-paper-plane', 'fa fa-paw', 'fa fa-plane', 'fa fa-plug', 'fa fa-road', 'fa fa-rocket', 'fa fa-smile-o', 'fa fa-snowflake-o', 'fa fa-space-shuttle', 'fa fa-star', 'fa fa-thumbs-up', 'fa fa-tree', 'fa fa-trophy', 'fa fa-wrench')
$_message
Message text
protected
string
$_message
= \NULL
$_oAdmin_Form_Setting
Admin_Form_Setting
protected
Admin_Form_Setting_Model|null
$_oAdmin_Form_Setting
= \NULL
$_path
Path
protected
string
$_path
= \NULL
$_propertiesValues
Properties values
protected
array<string|int, mixed>
$_propertiesValues
= array()
$_skin
Use skin
protected
bool
$_skin
= \TRUE
$_totalCount
Total founded items
protected
int
$_totalCount
= \NULL
$_unlimitedProperties
Object has unlimited number of properties
protected
bool
$_unlimitedProperties
= \FALSE
Methods
__construct()
Constructor.
public
__construct([Admin_Form_Model $oAdmin_Form = NULL ]) : mixed
Parameters
- $oAdmin_Form : Admin_Form_Model = NULL
-
admin form
Return values
mixed —action()
Set action
public
action(string $action) : self
Parameters
- $action : string
Return values
self —addAction()
Добавление обработчика действия
public
addAction(Admin_Form_Action_Controller $oAdmin_Form_Action_Controller) : mixed
Parameters
- $oAdmin_Form_Action_Controller : Admin_Form_Action_Controller
-
action controller
Return values
mixed —addAdditionalParam()
Add additional param
public
addAdditionalParam(string $key, string $value) : self
Parameters
- $key : string
-
param name
- $value : string
-
param value
Return values
self —addAllowedProperties()
Add additional allowed properties
public
addAllowedProperties(array<string|int, mixed> $array) : self
Parameters
- $array : array<string|int, mixed>
-
array of properties' names
Return values
self —addAllowedProperty()
Add additional allowed property
public
addAllowedProperty(string $property) : self
Parameters
- $property : string
-
property name
Return values
self —addContent()
Add content for Back-end form
public
addContent(string $content) : self
Parameters
- $content : string
-
content
Return values
self —addDataset()
Add dataset
public
addDataset(Admin_Form_Dataset $oAdmin_Form_Dataset) : self
Parameters
- $oAdmin_Form_Dataset : Admin_Form_Dataset
-
dataset
Tags
Return values
self —addEntity()
Add entity
public
addEntity(Admin_Form_Entity $oAdmin_Form_Entity) : self
Parameters
- $oAdmin_Form_Entity : Admin_Form_Entity
Tags
Return values
self —addExternalReplace()
Add external replacement Добавление внешней подстановки
public
addExternalReplace(string $key, string $value) : self
Parameters
- $key : string
-
name of replacement
- $value : string
-
value of replacement
Return values
self —addFilter()
Add handler of the filter Добавление обработчика фильтра
public
addFilter(string $fieldName, string $function) : self
Parameters
- $fieldName : string
-
field name
- $function : string
-
function name
Return values
self —addFilterCallback()
Добавление функции обратного вызова, используемой для корректировки переданного значения
public
addFilterCallback(string $fieldName, string $function) : self
Parameters
- $fieldName : string
-
field name
- $function : string
-
function name
Return values
self —addMessage()
Add message for Back-end form
public
addMessage(string $message) : self
Parameters
- $message : string
-
message
Return values
self —addView()
Add view
public
addView(string $name[, string $className = NULL ]) : self
Parameters
- $name : string
- $className : string = NULL
Return values
self —ajax()
Set AJAX
public
ajax(bool $ajax) : self
Parameters
- $ajax : bool
-
ajax
Return values
self —applyEditable()
Edit-in-Place in Back-end
public
applyEditable() : self
Return values
self —applyFormat()
Применяет формат отображения $format к строке $str.
public
applyFormat(string $str, string $format) : mixed
Если формат является пустой строкой - $str возвращается в исходном виде.
Parameters
- $str : string
-
исходная строка
- $format : string
-
форма отображения. Строка формата состоит из директив: обычных символов (за исключением %), которые копируются в результирующую строку, и описатели преобразований, каждый из которых заменяется на один из параметров.
Return values
mixed —changeAction()
Apply external changes for actions
public
changeAction(Admin_Form_Dataset $oAdmin_Form_Dataset, Admin_Form_Action $oAdmin_Form_Action) : object
Parameters
- $oAdmin_Form_Dataset : Admin_Form_Dataset
-
dataset
- $oAdmin_Form_Action : Admin_Form_Action
-
actions
Return values
object —changeField()
Apply external changes for fields
public
changeField(Admin_Form_Dataset $oAdmin_Form_Dataset, Admin_Form_Field $oAdmin_Form_Field) : object
Parameters
- $oAdmin_Form_Dataset : Admin_Form_Dataset
-
dataset
- $oAdmin_Form_Field : Admin_Form_Field
-
field
Return values
object —clearChecked()
Clear checked items on the form
public
clearChecked() : self
Return values
self —clearContent()
Clear content for Back-end form
public
clearContent() : self
Return values
self —clearMessages()
Clear messages for Back-end form
public
clearMessages() : self
Return values
self —convertLike()
Convert %LIKE%
public
convertLike(string $str) : string
Parameters
- $str : string
Return values
string —create()
Create new form controller
public
static create([Admin_Form_Model $oAdmin_Form = NULL ]) : object
Parameters
- $oAdmin_Form : Admin_Form_Model = NULL
Return values
object —current()
Set current page
public
current(int $current) : self
Parameters
- $current : int
-
page
Return values
self —deleteAdminFormActionById()
Delete Admin_Form_Action by ID
public
deleteAdminFormActionById(mixed $id) : self
Parameters
- $id : mixed
Return values
self —deleteAdminFormFieldById()
Delete Admin_Form_Field by ID
public
deleteAdminFormFieldById(mixed $id) : self
Parameters
- $id : mixed
Return values
self —doReplaces()
Apply external replaces in $subject
public
doReplaces(array<string|int, mixed> $aAdmin_Form_Fields, Core_Entity $oEntity, string $subject[, string $mode = 'link' ]) : string
Parameters
- $aAdmin_Form_Fields : array<string|int, mixed>
-
Admin_Form_Fields
- $oEntity : Core_Entity
-
entity
- $subject : string
- $mode : string = 'link'
-
link|onclick
Return values
string —execute()
Executes the business logic.
public
execute() : mixed
Tags
Return values
mixed —filterId()
Set filterId
public
filterId(string $filterId) : self
Parameters
- $filterId : string
Return values
self —filterSettings()
Set filter settings
public
filterSettings(array<string|int, mixed> $filterSettings) : self
Parameters
- $filterSettings : array<string|int, mixed>
Return values
self —formSettings()
Apply form settings
public
formSettings() : self
Return values
self —getAction()
Get action
public
getAction() : string
Return values
string —getAdminActionLoadAjax()
Backend callback method
public
getAdminActionLoadAjax(array<string|int, mixed> $options) : string
Parameters
- $options : array<string|int, mixed>
-
array('path', 'action', 'operation', 'datasetKey', 'datasetValue', 'additionalParams', 'limit', 'current', 'sortingFieldId', 'sortingDirection', 'view', 'window')
Return values
string —getAdminActionLoadHref()
Backend callback method
public
getAdminActionLoadHref(array<string|int, mixed> $options) : string
Parameters
- $options : array<string|int, mixed>
-
array('path', 'action', 'operation', 'datasetKey', 'datasetValue', 'additionalParams', 'limit', 'current', 'sortingFieldId', 'sortingDirection', 'view', 'window')
Return values
string —getAdminActionModalLoad()
Backend callback method
public
getAdminActionModalLoad(array<string|int, mixed> $options) : string
Parameters
- $options : array<string|int, mixed>
-
array('path', 'action', 'operation', 'datasetKey', 'datasetValue', 'additionalParams', 'limit', 'current', 'sortingFieldId', 'sortingDirection', 'view', 'window')
Return values
string —getAdminForm()
Get Admin_Form
public
getAdminForm() : Admin_Form_Model
Return values
Admin_Form_Model —getAdminFormActionById()
Get Admin_Form_Action by ID
public
getAdminFormActionById(mixed $id) : object|null
Parameters
- $id : mixed
Return values
object|null —getAdminFormActionByName()
Get Admin_Form_Action by Name
public
getAdminFormActionByName(mixed $name) : object|null
Parameters
- $name : mixed
Return values
object|null —getAdminFormActions()
Get Admin_Form_Actions
public
getAdminFormActions() : array<string|int, mixed>
Return values
array<string|int, mixed> —getAdminFormFieldById()
Get Admin_Form_Field by ID
public
getAdminFormFieldById(mixed $id) : object|null
Parameters
- $id : mixed
Return values
object|null —getAdminFormFieldByName()
Get Admin_Form_Field by Name
public
getAdminFormFieldByName(mixed $name) : object|null
Parameters
- $name : mixed
Return values
object|null —getAdminFormFields()
Get Admin_Form_Fields
public
getAdminFormFields() : array<string|int, mixed>
Return values
array<string|int, mixed> —getAdminLanguage()
Get current Admin_Language
public
getAdminLanguage() : Admin_Language_Model|null
Return values
Admin_Language_Model|null —getAdminLoadAjax()
Получение кода вызова adminLoad для события onclick
public
getAdminLoadAjax(array<string|int, mixed> $options) : string
Parameters
- $options : array<string|int, mixed>
-
array('path', 'action', 'operation', 'additionalParams', 'limit', 'current', 'sortingFieldId', 'sortingDirection', 'view', 'window')
Return values
string —getAdminLoadHref()
Получение кода вызова adminLoad для href
public
getAdminLoadHref(array<string|int, mixed> $options) : string
Parameters
- $options : array<string|int, mixed>
-
array('action', 'operation', 'additionalParams', 'limit', 'current', 'sortingFieldId', 'sortingDirection', 'view', 'window')
Return values
string —getAdminSendForm()
Получение кода вызова adminLoad для события onclick
public
getAdminSendForm(array<string|int, mixed> $options) : string
Parameters
- $options : array<string|int, mixed>
Return values
string —getAjax()
Get AJAX
public
getAjax() : bool
Return values
bool —getBackgroundColorClass()
Get background color class for object ID
public
static getBackgroundColorClass(int $id) : string
Parameters
- $id : int
-
object ID
Return values
string —getChecked()
Get checked items on the form
public
getChecked() : array<string|int, mixed>
Return values
array<string|int, mixed> —getChildren()
Get Children
public
getChildren() : array<string|int, mixed>
Return values
array<string|int, mixed> —getContent()
Get content message
public
getContent() : string
Return values
string —getCurrent()
Get current page
public
getCurrent() : int
Return values
int —getDataset()
Get dataset
public
getDataset(int $key) : Admin_Form_Dataset|null
Parameters
- $key : int
-
index
Return values
Admin_Form_Dataset|null —getDatasets()
Get datasets
public
getDatasets() : array<string|int, mixed>
Return values
array<string|int, mixed> —getExternalReplace()
Get external replacement
public
getExternalReplace() : array<string|int, mixed>
Return values
array<string|int, mixed> —getFieldName()
Get field name, cut table name. E.g. table.field => field
public
getFieldName(string $fieldName) : string
Parameters
- $fieldName : string
Return values
string —getFilterJson()
Get filter json
public
getFilterJson() : array<string|int, mixed>
Return values
array<string|int, mixed> —getFilterSettings()
public
getFilterSettings() : mixed
Return values
mixed —getIcon()
Get Icon for object ID
public
static getIcon(int $id) : string
Parameters
- $id : int
-
object ID
Return values
string —getMessage()
Get form message
public
getMessage() : string
Return values
string —getModalLoad()
Получение кода вызова modalLoad для события onclick
public
getModalLoad(array<string|int, mixed> $options) : string
Parameters
- $options : array<string|int, mixed>
-
array('path', 'action', 'operation', 'additionalParams', 'limit', 'current', 'sortingFieldId', 'sortingDirection', 'view', 'window', 'onHide')
Return values
string —getModule()
Get module
public
getModule() : object
Return values
object —getOperation()
Get operation
public
getOperation() : string
Return values
string —getPageTitle()
Get page <title>
public
getPageTitle() : string
Return values
string —getPath()
Get path
public
getPath() : string
Return values
string —getSortingField()
Get sorting field
public
getSortingField() : Admin_Form_Field_Model
Return values
Admin_Form_Field_Model —getTotalCount()
Get count of total founded items
public
getTotalCount() : int
Return values
int —getWindowId()
Get window ID
public
getWindowId() : int
Return values
int —isCallable()
Check is callable method
public
isCallable(object $oEntity, string $fieldName) : bool
Parameters
- $oEntity : object
- $fieldName : string
Return values
bool —jQueryEscape()
Escape jQuery selectors
public
jQueryEscape(string $str) : string
Parameters
- $str : string
-
string
Return values
string —limit()
Set limit of elements on page
public
limit(int $limit) : self
Parameters
- $limit : int
-
count
Return values
self —loadAdminFormActions()
Load Admin_Form_Actions
public
loadAdminFormActions() : self
Return values
self —loadAdminFormFields()
Load Admin_Form_Fields
public
loadAdminFormFields() : self
Return values
self —module()
Set module
public
module(Core_Module $oModule) : self
Parameters
- $oModule : Core_Module
Return values
self —operation()
Set operation
public
operation(string $operation) : self
Parameters
- $operation : string
Return values
self —pageTitle()
Set page <title>
public
pageTitle( $pageTitle) : self
Parameters
Return values
self —path()
Set path
public
path(string $path) : self
Parameters
- $path : string
-
path
Return values
self —perform()
public
perform() : mixed
Tags
Return values
mixed —prepareString()
Prepare string
public
prepareString(string $string) : string
Parameters
- $string : string
Return values
string —set()
Run when writing data to inaccessible properties
public
set(string $property, string $value) : self
Parameters
- $property : string
-
property name
- $value : string
-
property value
Return values
self —setAdditionalParam()
Set additional param
public
setAdditionalParam(mixed $value) : self
Parameters
- $value : mixed
Return values
self —setAdminFormActions()
Set Admin_Form_Actions
public
setAdminFormActions(array<string|int, mixed> $aAdmin_Form_Actions) : self
Parameters
- $aAdmin_Form_Actions : array<string|int, mixed>
Return values
self —setAdminFormFields()
Set Admin_Form_Fields
public
setAdminFormFields(array<string|int, mixed> $aAdmin_Form_Fields) : self
Parameters
- $aAdmin_Form_Fields : array<string|int, mixed>
Return values
self —setDatasetConditions()
Set dataset conditions
public
setDatasetConditions() : self
Return values
self —setDatasetLimits()
Set dataset limits
public
setDatasetLimits() : self
Return values
self —setTotalCount()
Set count of total founded items
public
setTotalCount(int $count) : self
Parameters
- $count : int
-
Total countt
Return values
self —setUnlimitedProperties()
Set unlimitedProperties
public
setUnlimitedProperties([bool $value = TRUE ]) : self
Parameters
- $value : bool = TRUE
-
default TRUR
Return values
self —setUp()
Form setup
public
setUp() : self
Return values
self —show()
Show built data
public
show() : mixed
Return values
mixed —showFilterField()
Отображает поле фильтра (верхнего или основного)
public
showFilterField(mixed $oAdmin_Form_Field, mixed $filterPrefix[, mixed $tabName = NULL ]) : mixed
Parameters
- $oAdmin_Form_Field : mixed
- $filterPrefix : mixed
- $tabName : mixed = NULL
Return values
mixed —showSettings()
public
showSettings() : mixed
Return values
mixed —skin()
Show skin
public
skin(bool $skin) : self
Parameters
- $skin : bool
-
use skin mode
Return values
self —sortingDirection()
Set sorting direction
public
sortingDirection(int $sortingDirection) : self
Parameters
- $sortingDirection : int
-
direction
Return values
self —sortingFieldId()
Set sorting field by ID
public
sortingFieldId(int $sortingFieldId) : self
Parameters
- $sortingFieldId : int
-
field ID
Return values
self —title()
Set <h1> for form
public
title(string $title) : self
Parameters
- $title : string
-
content
Return values
self —view()
Set view
public
view(string $view) : self
Parameters
- $view : string
Return values
self —window()
Set window ID
public
window(string $windowId) : self
Parameters
- $windowId : string
Return values
self —_filterCallbackCheckbox()
Filter checkbox callback
protected
_filterCallbackCheckbox(string $value, Admin_Form_Field_Model $oAdmin_Form_Field, string $filterPrefix, string $tabName) : mixed
Parameters
- $value : string
- $oAdmin_Form_Field : Admin_Form_Field_Model
- $filterPrefix : string
- $tabName : string
Return values
mixed —_filterCallbackCounterparty()
Filter counterparty callback
protected
_filterCallbackCounterparty(string $value, Admin_Form_Field_Model $oAdmin_Form_Field, string $filterPrefix, string $tabName) : mixed
Parameters
- $value : string
- $oAdmin_Form_Field : Admin_Form_Field_Model
- $filterPrefix : string
- $tabName : string
Return values
mixed —_filterCallbackDate()
Date-filed (from-to)
protected
_filterCallbackDate(mixed $date_from, mixed $date_to, mixed $oAdmin_Form_Field, mixed $filterPrefix, mixed $tabName) : mixed
Parameters
- $date_from : mixed
- $date_to : mixed
- $oAdmin_Form_Field : mixed
- $filterPrefix : mixed
- $tabName : mixed
Return values
mixed —_filterCallbackDateSingle()
Date-filed (single-mode)
protected
_filterCallbackDateSingle(mixed $date_from, mixed $date_to, mixed $oAdmin_Form_Field, mixed $filterPrefix, mixed $tabName) : mixed
Parameters
- $date_from : mixed
- $date_to : mixed
- $oAdmin_Form_Field : mixed
- $filterPrefix : mixed
- $tabName : mixed
Return values
mixed —_filterCallbackDatetime()
Filter datetime callback
protected
_filterCallbackDatetime(mixed $date_from, mixed $date_to, Admin_Form_Field_Model $oAdmin_Form_Field, string $filterPrefix, string $tabName) : mixed
Parameters
- $date_from : mixed
- $date_to : mixed
- $oAdmin_Form_Field : Admin_Form_Field_Model
- $filterPrefix : string
- $tabName : string
Return values
mixed —_filterCallbackInput()
Filter input callback
protected
_filterCallbackInput(string $value, Admin_Form_Field_Model $oAdmin_Form_Field, string $filterPrefix, string $tabName) : mixed
Parameters
- $value : string
- $oAdmin_Form_Field : Admin_Form_Field_Model
- $filterPrefix : string
- $tabName : string
Return values
mixed —_filterCallbackSelect()
Filter select callback
protected
_filterCallbackSelect(string $value, Admin_Form_Field_Model $oAdmin_Form_Field, string $filterPrefix, string $tabName) : mixed
Parameters
- $value : string
- $oAdmin_Form_Field : Admin_Form_Field_Model
- $filterPrefix : string
- $tabName : string
Return values
mixed —_filterCallbackSiteuser()
Filter siteuser callback
protected
_filterCallbackSiteuser(string $value, Admin_Form_Field_Model $oAdmin_Form_Field, string $filterPrefix, string $tabName) : mixed
Parameters
- $value : string
- $oAdmin_Form_Field : Admin_Form_Field_Model
- $filterPrefix : string
- $tabName : string
Return values
mixed —_filterCallbackSiteuserCompany()
Filter counterparty callback
protected
_filterCallbackSiteuserCompany(string $value, Admin_Form_Field_Model $oAdmin_Form_Field, string $filterPrefix, string $tabName) : mixed
Parameters
- $value : string
- $oAdmin_Form_Field : Admin_Form_Field_Model
- $filterPrefix : string
- $tabName : string
Return values
mixed —_filterCallbackUser()
Filter user callback
protected
_filterCallbackUser(string $value, Admin_Form_Field_Model $oAdmin_Form_Field, string $filterPrefix, string $tabName) : mixed
Parameters
- $value : string
- $oAdmin_Form_Field : Admin_Form_Field_Model
- $filterPrefix : string
- $tabName : string
Return values
mixed —_prepareAjaxRequest()
Подготовка массива опций для AJAX-запроса
protected
_prepareAjaxRequest(array<string|int, mixed> $options) : array<string|int, mixed>
Parameters
- $options : array<string|int, mixed>
-
array('action', 'operation', 'additionalParams', 'limit', 'current', 'sortingFieldId', 'sortingDirection', 'view', 'window')
Return values
array<string|int, mixed> —_printRow()
Print array
protected
_printRow(array<string|int, mixed> $aData) : self
Parameters
- $aData : array<string|int, mixed>