Update_Controller
extends Core_Servant_Properties
in package
Updates.
Tags
Table of Contents
Properties
- $instance : mixed
- The singleton instances.
- $_allowedProperties : array<string|int, mixed>
- Allowed object properties
- $_propertiesValues : array<string|int, mixed>
- Properties values
- $_unlimitedProperties : bool
- Object has unlimited number of properties
- $_xml : mixed
- Xml
Methods
- __construct() : mixed
- Constructor.
- addAllowedProperties() : self
- Add additional allowed properties
- addAllowedProperty() : self
- Add additional allowed property
- deleteUpdateFile() : mixed
- getFilePath() : string
- Get update file path
- getPath() : string
- Get directory path
- getUpdate() : string
- Загрузка файла для обновления $update_key_id
- getUpdateFile() : Core_Http
- Загрузка XML со списком обновлений
- getUpdates() : Update_Controller
- Загрузка XML с доступными обновлениями
- instance() : object
- Register an existing instance as a singleton.
- parseModules() : array<string|int, mixed>
- Parse XML module's file
- parseUpdates() : array<string|int, mixed>
- Parse XML update file
- set() : self
- Run when writing data to inaccessible properties
- setUnlimitedProperties() : self
- Set unlimitedProperties
- setUpdateOptions() : self
- Set update options
- _getXml() : string
- Get xml
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', 'install_beta', 'keys', 'modules', 'protocol')
$_propertiesValues
Properties values
protected
array<string|int, mixed>
$_propertiesValues
= array()
$_unlimitedProperties
Object has unlimited number of properties
protected
bool
$_unlimitedProperties
= \FALSE
$_xml
Xml
protected
mixed
$_xml
= \NULL
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
selfdeleteUpdateFile()
public
deleteUpdateFile() : mixed
getFilePath()
Get update file path
public
getFilePath() : string
Return values
stringgetPath()
Get directory path
public
getPath() : string
Return values
stringgetUpdate()
Загрузка файла для обновления $update_key_id
public
getUpdate(mixed $update_key_id) : string
Parameters
- $update_key_id : mixed
Return values
stringgetUpdateFile()
Загрузка XML со списком обновлений
public
getUpdateFile(string $path) : Core_Http
Parameters
- $path : string
Return values
Core_HttpgetUpdates()
Загрузка XML с доступными обновлениями
public
getUpdates() : Update_Controller
Return values
Update_Controllerinstance()
Register an existing instance as a singleton.
public
static instance() : object
Return values
objectparseModules()
Parse XML module's file
public
parseModules() : array<string|int, mixed>
Return values
array<string|int, mixed>parseUpdates()
Parse XML update file
public
parseUpdates() : array<string|int, mixed>
Return values
array<string|int, mixed>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
selfsetUnlimitedProperties()
Set unlimitedProperties
public
setUnlimitedProperties([bool $value = TRUE ]) : self
Parameters
- $value : bool = TRUE
-
default TRUR
Return values
selfsetUpdateOptions()
Set update options
public
setUpdateOptions() : self
Return values
self_getXml()
Get xml
protected
_getXml() : string