Documentation

Skin_Bootstrap_Field_Controller_Tab extends Field_Controller_Tab
in package

Admin forms.

Tags
subpackage

Skin

version
7.x
author

Hostmake LLC

copyright

© 2005-2024 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru

Table of Contents

Properties

$_Admin_Form_Controller  : Admin_Form_Controller
Form controller
$_cacheListOptions  : array<string|int, mixed>
List Options Cache
$_datasetId  : int
Dataset ID
$_field_values  : mixed
$_object  : object|null
Object
$_POST  : array<string|int, mixed>
POST data
$_tab  : Skin_Default_Admin_Form_Entity_Tab
Tab

Methods

__construct()  : mixed
Constructor.
applyObjectProperty()  : mixed
Apply object field
factory()  : object
Create and return an object of Field_Controller_Tab for current skin
fillTab()  : self
Show fields on tab
getAdmin_Form_Controller()  : Admin_Form_Controller
Get _Admin_Form_Controller
getFieldValues()  : array<string|int, mixed>
Get field values
getImgAdd()  : string
Show plus button
getImgDelete()  : string
Show minus button
getImgDeleteFilePath()  : mixed
getImgDeletePath()  : string
Get path to delete image
getObject()  : Core_Entity
Get object
getShopItems()  : mixed
imgBox()  : self
Show add/delete buttons
setDatasetId()  : self
Set ID of dataset
setObject()  : self
Set object
setTab()  : self
Set tab
_addIntoSection()  : mixed
_correctPrintValue()  : string
Correct print value by field type
_correctValue()  : string
Correct save value by field type
_fillInformationSystem()  : mixed
Fill information systems/items list
_fillInformationSystemGroup()  : mixed
_fillList()  : mixed
_fillShop()  : mixed
Fill shops/items list
_fillShopGroup()  : mixed
_getEachPost()  : string
Return value by key from POST
_getFields()  : object
Get field list
_loadFiles()  : mixed
Load files
_setFieldDirs()  : mixed
Add external fields container to $parentObject
_setValue()  : mixed

Properties

$_cacheListOptions

List Options Cache

protected array<string|int, mixed> $_cacheListOptions = array()

$_datasetId

Dataset ID

protected int $_datasetId = \NULL

$_field_values

protected mixed $_field_values = array()

$_object

Object

protected object|null $_object = \NULL

$_POST

POST data

protected array<string|int, mixed> $_POST = array()

Methods

applyObjectProperty()

Apply object field

public applyObjectProperty() : mixed
Tags
hostcms-event

Field_Controller_Tab.onBeforeApplyObjectProperty

hostcms-event

Field_Controller_Tab.onAfterApplyObjectProperty

hostcms-event

Field_Controller_Tab.onApplyObjectProperty

factory()

Create and return an object of Field_Controller_Tab for current skin

public static factory(Admin_Form_Controller $Admin_Form_Controller) : object
Parameters
$Admin_Form_Controller : Admin_Form_Controller
Return values
object

fillTab()

Show fields on tab

public fillTab() : self
Return values
self

getFieldValues()

Get field values

public getFieldValues([bool $bCache = TRUE ][, array<string|int, mixed> $aFieldsId = array() ]) : array<string|int, mixed>
Parameters
$bCache : bool = TRUE

cache, default TRUE

$aFieldsId : array<string|int, mixed> = array()

field ids, default array()

Return values
array<string|int, mixed>

getImgAdd()

Show plus button

public getImgAdd(Field_Model $oField[, string $addFunction = '$.cloneField' ]) : string
Parameters
$oField : Field_Model

field

$addFunction : string = '$.cloneField'

function name

Return values
string

getImgDelete()

Show minus button

public getImgDelete([string $onclick = '$.deleteNewField(this)' ]) : string
Parameters
$onclick : string = '$.deleteNewField(this)'

onclick attribute value

Return values
string

getImgDeleteFilePath()

public getImgDeleteFilePath(mixed $oField_Value, mixed $prefix) : mixed
Parameters
$oField_Value : mixed
$prefix : mixed

getImgDeletePath()

Get path to delete image

public getImgDeletePath(mixed $oField_Value) : string
Parameters
$oField_Value : mixed
Return values
string

imgBox()

Show add/delete buttons

public imgBox(mixed $oAdmin_Form_Entity, mixed $oField[, mixed $addFunction = '$.cloneField' ][, mixed $deleteOnclick = '$.deleteNewField(this)' ]) : self
Parameters
$oAdmin_Form_Entity : mixed
$oField : mixed

field

$addFunction : mixed = '$.cloneField'

add function name

$deleteOnclick : mixed = '$.deleteNewField(this)'

delete onclick attribute value

Return values
self

setDatasetId()

Set ID of dataset

public setDatasetId(int $datasetId) : self
Parameters
$datasetId : int

ID of dataset

Return values
self

setObject()

Set object

public setObject(mixed $object) : self
Parameters
$object : mixed

object

Return values
self

_addIntoSection()

protected _addIntoSection(mixed $oAdmin_Form_Entity_Section, mixed $oField) : mixed
Parameters
$oAdmin_Form_Entity_Section : mixed
$oField : mixed

_correctPrintValue()

Correct print value by field type

protected _correctPrintValue(Field $oField, string $value) : string
Parameters
$oField : Field

field

$value : string

value

Return values
string

_correctValue()

Correct save value by field type

protected _correctValue(Field $oField, string $value) : string
Parameters
$oField : Field

field

$value : string

value

Return values
string

_fillInformationSystem()

Fill information systems/items list

protected _fillInformationSystem(int $value, Field_Model $oField, mixed $oField_Value, mixed $oAdmin_Form_Entity_Section, Admin_Form_Entity_Select $oAdmin_Form_Entity_InfGroups, Admin_Form_Entity_Select $oAdmin_Form_Entity_InfItemsSelect, mixed $oAdmin_Form_Entity_InfItemsInput) : mixed
Parameters
$value : int

informationsystem_item_id

$oField : Field_Model

field

$oField_Value : mixed
$oAdmin_Form_Entity_Section : mixed
$oAdmin_Form_Entity_InfGroups : Admin_Form_Entity_Select
$oAdmin_Form_Entity_InfItemsSelect : Admin_Form_Entity_Select
$oAdmin_Form_Entity_InfItemsInput : mixed

_fillInformationSystemGroup()

protected _fillInformationSystemGroup(mixed $value, mixed $oField, mixed $oField_Value, mixed $oAdmin_Form_Entity_Section, mixed $oAdmin_Form_Entity_InfGroups, mixed $oAdmin_Form_Entity_InfGroupsInput) : mixed
Parameters
$value : mixed
$oField : mixed
$oField_Value : mixed
$oAdmin_Form_Entity_Section : mixed
$oAdmin_Form_Entity_InfGroups : mixed
$oAdmin_Form_Entity_InfGroupsInput : mixed

_fillList()

protected _fillList(mixed $value, mixed $oField, mixed $oField_Value, mixed $oAdmin_Form_Entity_Section, mixed $oAdmin_Form_Entity_ListItemsSelect, mixed $oAdmin_Form_Entity_ListItemsInput, mixed $oAdmin_Form_Entity_Autocomplete_Select) : mixed
Parameters
$value : mixed
$oField : mixed
$oField_Value : mixed
$oAdmin_Form_Entity_Section : mixed
$oAdmin_Form_Entity_ListItemsSelect : mixed
$oAdmin_Form_Entity_ListItemsInput : mixed
$oAdmin_Form_Entity_Autocomplete_Select : mixed

_fillShop()

Fill shops/items list

protected _fillShop(int $value, Field_Model $oField, mixed $oField_Value, mixed $oAdmin_Form_Entity_Section, Admin_Form_Entity_Select $oAdmin_Form_Entity_Shop_Groups, Admin_Form_Entity_Select $oAdmin_Form_Entity_Shop_Items, mixed $oAdmin_Form_Entity_Shop_Items_Input) : mixed
Parameters
$value : int

shop_item_id

$oField : Field_Model

field

$oField_Value : mixed
$oAdmin_Form_Entity_Section : mixed
$oAdmin_Form_Entity_Shop_Groups : Admin_Form_Entity_Select
$oAdmin_Form_Entity_Shop_Items : Admin_Form_Entity_Select
$oAdmin_Form_Entity_Shop_Items_Input : mixed

_fillShopGroup()

protected _fillShopGroup(mixed $value, mixed $oField, mixed $oField_Value, mixed $oAdmin_Form_Entity_Section, mixed $oAdmin_Form_Entity_Shop_Groups, mixed $oAdmin_Form_Entity_Shop_Groups_Input) : mixed
Parameters
$value : mixed
$oField : mixed
$oField_Value : mixed
$oAdmin_Form_Entity_Section : mixed
$oAdmin_Form_Entity_Shop_Groups : mixed
$oAdmin_Form_Entity_Shop_Groups_Input : mixed

_getEachPost()

Return value by key from POST

protected _getEachPost(string $name) : string
Parameters
$name : string

key

Return values
string

_getFields()

Get field list

protected _getFields() : object
Return values
object

_loadFiles()

Load files

protected _loadFiles(array<string|int, mixed> $aLargeFile, array<string|int, mixed> $aSmallFile, Field_Value_File_Model $oFileValue, Field_Model $oField, string $sFieldName) : mixed
Parameters
$aLargeFile : array<string|int, mixed>

large file data

$aSmallFile : array<string|int, mixed>

small file data

$oFileValue : Field_Value_File_Model

value of file object

$oField : Field_Model

field

$sFieldName : string

field name

_setFieldDirs()

Add external fields container to $parentObject

protected _setFieldDirs(int $field_dir_id, object $parentObject) : mixed
Parameters
$field_dir_id : int

ID of parent directory of fields

$parentObject : object
Tags
hostcms-event

Field_Controller_Tab.onBeforeAddFormEntity

hostcms-event

Field_Controller_Tab.onBeforeCreateFieldValue

hostcms-event

Field_Controller_Tab.onAfterCreateFieldValue

hostcms-event

Field_Controller_Tab.onAfterCreateFieldListValues

hostcms-event

Field_Controller_Tab.onSetFieldType

hostcms-event

Field_Controller_Tab.onBeforeAddSection

_setValue()

protected _setValue(mixed $oField_Value, mixed $value) : mixed
Parameters
$oField_Value : mixed
$value : mixed

        
On this page

Search results