Skin_Default_Property_Controller_Tab
extends Property_Controller_Tab
in package
Admin forms.
Tags
Table of Contents
Properties
- $_Admin_Form_Controller : Admin_Form_Controller
- Form controller
- $_allowedProperties : array<string|int, mixed>
- Allowed object properties
- $_aSortings : mixed
- $_aSortingTree : mixed
- $_cacheListOptions : array<string|int, mixed>
- List Options Cache
- $_datasetId : int
- Dataset ID
- $_object : object
- Object
- $_POST : array<string|int, mixed>
- POST data
- $_propertiesValues : array<string|int, mixed>
- Properties values
- $_property_values : mixed
- $_tab : Skin_Default_Admin_Form_Entity_Tab
- Tab
- $_unlimitedProperties : bool
- Object has unlimited number of properties
Methods
- __construct() : mixed
- Constructor.
- addAllowedProperties() : self
- Add additional allowed properties
- addAllowedProperty() : self
- Add additional allowed property
- applyObjectProperty() : mixed
- Apply object property
- factory() : object
- Create and return an object of Property_Controller_Tab for current skin
- fillTab() : self
- Show properties on tab
- getAdmin_Form_Controller() : Admin_Form_Controller
- Get _Admin_Form_Controller
- getImgAdd() : string
- Show plus button
- getImgDelete() : string
- Show minus button
- getImgDeletePath() : string
- Get path to delete image
- getObject() : Core_Entity
- Get object
- getShopItems() : mixed
- imgBox() : string
- Show buttons
- set() : self
- Run when writing data to inaccessible properties
- setDatasetId() : self
- Set ID of dataset
- setObject() : self
- Set object
- setTab() : self
- Set tab
- setUnlimitedProperties() : self
- Set unlimitedProperties
- _addIntoSection() : mixed
- _correctPrintValue() : string
- Correct print value by property type
- _correctValue() : string
- Correct save value by property 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
- _getProperties() : object
- Get property list
- _getSorting() : int
- Get property value sorting
- _loadFiles() : mixed
- Load files
- _setPropertyDirs() : mixed
- Add external properties container to $parentObject
- _setValue() : mixed
Properties
$_Admin_Form_Controller
Form controller
protected
Admin_Form_Controller
$_Admin_Form_Controller
= \NULL
$_allowedProperties
Allowed object properties
protected
array<string|int, mixed>
$_allowedProperties
= array()
$_aSortings
protected
mixed
$_aSortings
= array()
$_aSortingTree
protected
mixed
$_aSortingTree
= array()
$_cacheListOptions
List Options Cache
protected
array<string|int, mixed>
$_cacheListOptions
= array()
$_datasetId
Dataset ID
protected
int
$_datasetId
= \NULL
$_object
Object
protected
object
$_object
= \NULL
$_POST
POST data
protected
array<string|int, mixed>
$_POST
= array()
$_propertiesValues
Properties values
protected
array<string|int, mixed>
$_propertiesValues
= array()
$_property_values
protected
mixed
$_property_values
= array()
$_tab
Tab
protected
Skin_Default_Admin_Form_Entity_Tab
$_tab
= \NULL
$_unlimitedProperties
Object has unlimited number of properties
protected
bool
$_unlimitedProperties
= \FALSE
Methods
__construct()
Constructor.
public
__construct() : mixed
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
selfaddAllowedProperty()
Add additional allowed property
public
addAllowedProperty(string $property) : self
Parameters
- $property : string
-
property name
Return values
selfapplyObjectProperty()
Apply object property
public
applyObjectProperty() : mixed
Tags
factory()
Create and return an object of Property_Controller_Tab for current skin
public
static factory(Admin_Form_Controller $Admin_Form_Controller) : object
Parameters
- $Admin_Form_Controller : Admin_Form_Controller
Return values
objectfillTab()
Show properties on tab
public
fillTab() : self
Return values
selfgetAdmin_Form_Controller()
Get _Admin_Form_Controller
public
getAdmin_Form_Controller() : Admin_Form_Controller
Return values
Admin_Form_ControllergetImgAdd()
Show plus button
public
getImgAdd(Property_Model $oProperty[, string $addFunction = '$.cloneProperty' ]) : string
Parameters
- $oProperty : Property_Model
-
property
- $addFunction : string = '$.cloneProperty'
-
function name
Return values
stringgetImgDelete()
Show minus button
public
getImgDelete([string $onclick = '$.deleteNewProperty(this)' ]) : string
Parameters
- $onclick : string = '$.deleteNewProperty(this)'
-
onclick attribute value
Return values
stringgetImgDeletePath()
Get path to delete image
public
getImgDeletePath() : string
Return values
stringgetObject()
Get object
public
getObject() : Core_Entity
Return values
Core_EntitygetShopItems()
public
static getShopItems(Shop_Item_Model $oShop_Item) : mixed
Parameters
- $oShop_Item : Shop_Item_Model
imgBox()
Show buttons
public
imgBox(mixed $oAdmin_Form_Entity, mixed $oProperty[, mixed $addFunction = '$.cloneProperty' ][, mixed $deleteOnclick = '$.deleteNewProperty(this)' ]) : string
Parameters
- $oAdmin_Form_Entity : mixed
- $oProperty : mixed
-
property
- $addFunction : mixed = '$.cloneProperty'
-
function name
- $deleteOnclick : mixed = '$.deleteNewProperty(this)'
-
onclick attribute value
Return values
stringset()
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
selfsetDatasetId()
Set ID of dataset
public
setDatasetId(int $datasetId) : self
Parameters
- $datasetId : int
-
ID of dataset
Return values
selfsetObject()
Set object
public
setObject(Core_Entity $object) : self
Parameters
- $object : Core_Entity
-
object
Return values
selfsetTab()
Set tab
public
setTab(Skin_Default_Admin_Form_Entity_Tab $tab) : self
Parameters
- $tab : Skin_Default_Admin_Form_Entity_Tab
-
tab
Return values
selfsetUnlimitedProperties()
Set unlimitedProperties
public
setUnlimitedProperties([bool $value = TRUE ]) : self
Parameters
- $value : bool = TRUE
-
default TRUR
Return values
self_addIntoSection()
protected
_addIntoSection(mixed $oAdmin_Form_Entity_Panel, mixed $oProperty[, mixed $active = TRUE ]) : mixed
Parameters
- $oAdmin_Form_Entity_Panel : mixed
- $oProperty : mixed
- $active : mixed = TRUE
_correctPrintValue()
Correct print value by property type
protected
_correctPrintValue(Property $oProperty, string $value) : string
Parameters
- $oProperty : Property
-
property
- $value : string
-
value
Return values
string_correctValue()
Correct save value by property type
protected
_correctValue(Property $oProperty, string $value) : string
Parameters
- $oProperty : Property
-
property
- $value : string
-
value
Return values
string_fillInformationSystem()
Fill information systems/items list
protected
_fillInformationSystem(int $value, Property_Model $oProperty, 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
- $oProperty : Property_Model
-
property
- $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 $oProperty, mixed $oAdmin_Form_Entity_Section, mixed $oAdmin_Form_Entity_InfGroups, mixed $oAdmin_Form_Entity_InfGroupsInput) : mixed
Parameters
- $value : mixed
- $oProperty : mixed
- $oAdmin_Form_Entity_Section : mixed
- $oAdmin_Form_Entity_InfGroups : mixed
- $oAdmin_Form_Entity_InfGroupsInput : mixed
_fillList()
protected
_fillList(mixed $value, mixed $oProperty, 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
- $oProperty : 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, Property_Model $oProperty, 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
- $oProperty : Property_Model
-
property
- $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 $oProperty, mixed $oAdmin_Form_Entity_Section, mixed $oAdmin_Form_Entity_Shop_Groups, mixed $oAdmin_Form_Entity_Shop_Groups_Input) : mixed
Parameters
- $value : mixed
- $oProperty : 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_getProperties()
Get property list
protected
_getProperties() : object
Return values
object_getSorting()
Get property value sorting
protected
_getSorting(Property_Value_Model $oProperty_Value) : int
Parameters
- $oProperty_Value : Property_Value_Model
Return values
int_loadFiles()
Load files
protected
_loadFiles(array<string|int, mixed> $aLargeFile, array<string|int, mixed> $aSmallFile, Property_Value_File_Model $oProperty_Value, string $sPropertyName) : mixed
Parameters
- $aLargeFile : array<string|int, mixed>
-
large file data
- $aSmallFile : array<string|int, mixed>
-
small file data
- $oProperty_Value : Property_Value_File_Model
-
value of file object
- $sPropertyName : string
-
property name
_setPropertyDirs()
Add external properties container to $parentObject
protected
_setPropertyDirs(int $property_dir_id, object $parentObject) : mixed
Parameters
- $property_dir_id : int
-
ID of parent directory of properties
- $parentObject : object
Tags
_setValue()
protected
_setValue(mixed $oProperty_Value, mixed $value) : mixed
Parameters
- $oProperty_Value : mixed
- $value : mixed