Documentation

Update_Controller extends Core_Servant_Properties
in package

Updates.

Tags
subpackage

Update

version
7.x
author

Hostmake LLC

copyright

© 2005-2024 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru

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

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

deleteUpdateFile()

public deleteUpdateFile() : mixed

getFilePath()

Get update file path

public getFilePath() : string
Return values
string

getPath()

Get directory path

public getPath() : string
Return values
string

getUpdate()

Загрузка файла для обновления $update_key_id

public getUpdate(mixed $update_key_id) : string
Parameters
$update_key_id : mixed
Return values
string

getUpdateFile()

Загрузка XML со списком обновлений

public getUpdateFile(string $path) : Core_Http
Parameters
$path : string
Return values
Core_Http

instance()

Register an existing instance as a singleton.

public static instance() : object
Return values
object

parseModules()

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
self

setUnlimitedProperties()

Set unlimitedProperties

public setUnlimitedProperties([bool $value = TRUE ]) : self
Parameters
$value : bool = TRUE

default TRUR

Return values
self

setUpdateOptions()

Set update options

public setUpdateOptions() : self
Return values
self

_getXml()

Get xml

protected _getXml() : string
Return values
string

        
On this page

Search results