PHP Класс ElggUpgrade, Elgg

These are listed in admin/upgrades and allow for ajax upgrades.
Наследование: extends ElggObject
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$_callable_egefps callable Do not use.

Открытые методы

Метод Описание
__get ( string $name ) : mixed Get an attribute or private setting value
__set ( string $name, mixed $value ) : void Set a value as private setting or attribute.
getBatch ( ) : Elgg\Upgrade\Batch | false Return instance of the class that processes the data
getCompletedTime ( ) : string Gets the time when the upgrade completed.
initializeAttributes ( ) : null Set subtype to upgrade
isCompleted ( ) : boolean Has this upgrade completed?
save ( ) : mixed Require an upgrade page.
setClass ( string $class ) : void Sets a class for the upgrade
setCompleted ( ) : boolean Mark this upgrade as completed
setCompletedTime ( integer $time = null ) : boolean Sets the timestamp for when the upgrade completed.
setID ( string $id ) : void Sets an unique id for the upgrade

Описание методов

__get() публичный Метод

Get an attribute or private setting value
public __get ( string $name ) : mixed
$name string Name of the attribute or private setting
Результат mixed

__set() публичный Метод

Attributes include title and description.
public __set ( string $name, mixed $value ) : void
$name string Name of the attribute or private_setting
$value mixed Value to be set
Результат void

getBatch() публичный Метод

Return instance of the class that processes the data
public getBatch ( ) : Elgg\Upgrade\Batch | false
Результат Elgg\Upgrade\Batch | false

getCompletedTime() публичный Метод

Gets the time when the upgrade completed.
public getCompletedTime ( ) : string
Результат string

initializeAttributes() публичный Метод

Set subtype to upgrade
public initializeAttributes ( ) : null
Результат null

isCompleted() публичный Метод

Has this upgrade completed?
public isCompleted ( ) : boolean
Результат boolean

save() публичный Метод

Require an upgrade page.
public save ( ) : mixed
Результат mixed

setClass() публичный Метод

Sets a class for the upgrade
public setClass ( string $class ) : void
$class string Fully qualified class name
Результат void

setCompleted() публичный Метод

Mark this upgrade as completed
public setCompleted ( ) : boolean
Результат boolean

setCompletedTime() публичный Метод

Sets the timestamp for when the upgrade completed.
public setCompletedTime ( integer $time = null ) : boolean
$time integer Timestamp when upgrade finished. Defaults to now.
Результат boolean

setID() публичный Метод

Sets an unique id for the upgrade
public setID ( string $id ) : void
$id string Upgrade id in format :
Результат void

Описание свойств

$_callable_egefps публичное свойство

Do not use.
public callable $_callable_egefps
Результат callable