Market_Controller
extends Core_Servant_Properties
in package
Market.
Tags
Table of Contents
- $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
- __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
Return values
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 —applyModuleOptions()
public
applyModuleOptions() : mixed
Return values
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_Model —getMarket()
Загрузка магазина
public
getMarket() : Market_Controller
Return values
Market_Controller —getMarketItemsHtml()
Get market items html
public
getMarketItemsHtml() : string
Return values
string —getModule()
Загрузка приложения
public
getModule(int $module_id) : string
Parameters
- $module_id : int
-
update ID
Return values
string —getModuleFile()
Загрузка файла модуля
public
getModuleFile(string $path) : Core_Http
Parameters
- $path : string
Return values
Core_Http —getPath()
Get directory path
public
getPath() : string
Return values
string —install()
Install
public
install() : mixed
Return values
mixed —instance()
Register an existing instance as a singleton.
public
static instance() : object
Return values
object —parseModuleXml()
Parse module xml
public
parseModuleXml() : 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 —setMarketOptions()
Set market options
public
setMarketOptions() : self
Return values
self —setUnlimitedProperties()
Set unlimitedProperties
public
setUnlimitedProperties([bool $value = TRUE ]) : self
Parameters
- $value : bool = TRUE
-
default TRUR
Return values
self —showItemsList()
Show items list
public
showItemsList() : mixed
Return values
mixed —showModuleOptions()
Show module options
public
showModuleOptions() : self
Return values
self —_getCategoryOptions()
Get category options
protected
_getCategoryOptions(int $parentId, int $level) : mixed
Parameters
- $parentId : int
- $level : int
Return values
mixed —_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) : array<string|int, mixed>
Parameters
- $oXmlGroup : object
- $parentId : int