Market_Controller
extends Core_Servant_Properties
in package
Market.
Tags
Table of Contents
Properties
- $instance : mixed
- The singleton instances.
- $_allowedProperties : array<string|int, mixed>
- Allowed object properties
- $_aShop_Groups : array<string|int, mixed>
- Shop groups
- $_aTmpOptions : array<string|int, mixed>
- Options
- $_categories : array<string|int, mixed>
- Categories
- $_Module : mixed
- StdClass
- $_ModuleXml : mixed
- Module xml
- $_propertiesValues : array<string|int, mixed>
- Properties values
- $_unlimitedProperties : bool
- Object has unlimited number of properties
- $_uploadFiles : mixed
- Array of files to upload after install
Methods
- __construct() : mixed
- Constructor.
- addAllowedProperties() : self
- Add additional allowed properties
- addAllowedProperty() : self
- Add additional allowed property
- applyModuleOptions() : mixed
- getCategories() : array<string|int, mixed>
- Get categories
- getFields() : array<string|int, mixed>
- Get fields
- getFormField() : Form_Field_Model
- Get form field
- getMarket() : Market_Controller
- Загрузка магазина
- getMarketItemsHtml() : string
- Get market items html
- getModule() : string
- Загрузка приложения
- getModuleFile() : Core_Http
- Загрузка файла модуля
- getPath() : string
- Get directory path
- install() : mixed
- Install
- instance() : object
- Register an existing instance as a singleton.
- parseModuleXml() : string
- Parse module xml
- set() : self
- Run when writing data to inaccessible properties
- setMarketOptions() : self
- Set market options
- setUnlimitedProperties() : self
- Set unlimitedProperties
- showItemsList() : mixed
- Show items list
- showModuleOptions() : self
- Show module options
- _getCategoryOptions() : mixed
- Get category options
- _getMarketItemHtml() : string
- Get market item html
- _parseGroup() : array<string|int, mixed>
- Parse group
Properties
$instance
The singleton instances.
public
static mixed
$instance
= \NULL
$_allowedProperties
Allowed object properties
protected
array<string|int, mixed>
$_allowedProperties
= array('login', 'contract', 'pin', 'cms_folder', 'php_version', 'mysql_version', 'update_id', 'domain', 'update_server', 'keys', 'category_id', 'items', 'total', 'page', 'limit', 'search', 'installMode', 'error', 'controller', 'options', 'tmpDir', 'order', 'protocol')
$_aShop_Groups
Shop groups
protected
array<string|int, mixed>
$_aShop_Groups
= array()
$_aTmpOptions
Options
protected
array<string|int, mixed>
$_aTmpOptions
= array()
$_categories
Categories
protected
array<string|int, mixed>
$_categories
= array()
$_Module
StdClass
protected
mixed
$_Module
= \NULL
$_ModuleXml
Module xml
protected
mixed
$_ModuleXml
= \NULL
$_propertiesValues
Properties values
protected
array<string|int, mixed>
$_propertiesValues
= array()
$_unlimitedProperties
Object has unlimited number of properties
protected
bool
$_unlimitedProperties
= \FALSE
$_uploadFiles
Array of files to upload after install
protected
mixed
$_uploadFiles
= array()
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
selfapplyModuleOptions()
public
applyModuleOptions() : mixed
getCategories()
Get categories
public
getCategories() : array<string|int, mixed>
Return values
array<string|int, mixed>getFields()
Get fields
public
getFields(array<string|int, mixed> $array) : array<string|int, mixed>
Parameters
- $array : array<string|int, mixed>
Return values
array<string|int, mixed>getFormField()
Get form field
public
getFormField(array<string|int, mixed> $aFieldsValue) : Form_Field_Model
Parameters
- $aFieldsValue : array<string|int, mixed>
Return values
Form_Field_ModelgetMarket()
Загрузка магазина
public
getMarket() : Market_Controller
Return values
Market_ControllergetMarketItemsHtml()
Get market items html
public
getMarketItemsHtml() : string
Return values
stringgetModule()
Загрузка приложения
public
getModule(int $module_id) : string
Parameters
- $module_id : int
-
update ID
Return values
stringgetModuleFile()
Загрузка файла модуля
public
getModuleFile(string $path) : Core_Http
Parameters
- $path : string
Return values
Core_HttpgetPath()
Get directory path
public
getPath() : string
Return values
stringinstall()
Install
public
install() : mixed
instance()
Register an existing instance as a singleton.
public
static instance() : object
Return values
objectparseModuleXml()
Parse module xml
public
parseModuleXml() : string
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
selfsetMarketOptions()
Set market options
public
setMarketOptions() : self
Return values
selfsetUnlimitedProperties()
Set unlimitedProperties
public
setUnlimitedProperties([bool $value = TRUE ]) : self
Parameters
- $value : bool = TRUE
-
default TRUR
Return values
selfshowItemsList()
Show items list
public
showItemsList() : mixed
showModuleOptions()
Show module options
public
showModuleOptions() : self
Return values
self_getCategoryOptions()
Get category options
protected
_getCategoryOptions(int $parentId[, int $level = 0 ]) : mixed
Parameters
- $parentId : int
- $level : int = 0
_getMarketItemHtml()
Get market item html
protected
_getMarketItemHtml(object $object) : string
Parameters
- $object : object
Return values
string_parseGroup()
Parse group
protected
_parseGroup(object $oXmlGroup[, int $parentId = 0 ]) : array<string|int, mixed>
Parameters
- $oXmlGroup : object
- $parentId : int = 0