Documentation

Shop_Item_Property_Controller_Tab extends Property_Controller_Tab
in package

Properties for item group.

Tags
subpackage

Shop

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
$_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

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

$_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
self

addAllowedProperty()

Add additional allowed property

public addAllowedProperty(string $property) : self
Parameters
$property : string

property name

Return values
self

applyObjectProperty()

Apply object property

public applyObjectProperty() : mixed
Tags
hostcms-event

Property_Controller_Tab.onBeforeApplyObjectProperty

hostcms-event

Property_Controller_Tab.onAfterApplyObjectProperty

hostcms-event

Property_Controller_Tab.onApplyObjectProperty

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
object

fillTab()

Show properties on tab

public fillTab() : self
Return values
self

getImgAdd()

Show plus button

public getImgAdd(Property_Model $oProperty[, string $addFunction = '$.cloneProperty' ]) : string
Parameters
$oProperty : Property_Model

property

$addFunction : string = '$.cloneProperty'

function name

Return values
string

getImgDelete()

Show minus button

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

onclick attribute value

Return values
string

getImgDeletePath()

Get path to delete image

public getImgDeletePath() : string
Return values
string

imgBox()

Show buttons

public imgBox(mixed $oAdmin_Form_Entity, Property_Model $oProperty[, string $addFunction = '$.cloneProperty' ][, string $deleteOnclick = '$.deleteNewProperty(this)' ]) : string
Parameters
$oAdmin_Form_Entity : mixed
$oProperty : Property_Model

property

$addFunction : string = '$.cloneProperty'

function name

$deleteOnclick : string = '$.deleteNewProperty(this)'

onclick attribute value

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

setDatasetId()

Set ID of dataset

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

ID of dataset

Return values
self

setUnlimitedProperties()

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
hostcms-event

Property_Controller_Tab.onBeforeAddFormEntity

hostcms-event

Property_Controller_Tab.onBeforeCreatePropertyValue

hostcms-event

Property_Controller_Tab.onAfterCreatePropertyValue

hostcms-event

Property_Controller_Tab.onAfterCreatePropertyListValues

hostcms-event

Property_Controller_Tab.onSetPropertyType

hostcms-event

Property_Controller_Tab.onBeforeAddSection

_setValue()

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

        
On this page

Search results