PHP Класс ElggWidget, Elgg

Stores metadata in private settings rather than as ElggMetadata
Наследование: extends ElggObject
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__get ( string $name ) : mixed Get a value from attributes or private settings
__isset ( string $name ) : boolean Test if property is set either as an attribute or private setting
__set ( string $name, mixed $value ) : void Set an attribute or private setting value
__unset ( string $name ) : void Unset a property from private settings or attribute.
getContext ( ) : string Get the widget context
getTitle ( ) : string Get the title of the widget
move ( integer $column, integer $rank ) : void Move the widget
saveSettings ( array $params ) : boolean Saves the widget's settings
setContext ( string $context ) : boolean Set the widget context

Защищенные методы

Метод Описание
initializeAttributes ( ) : void Set subtype to widget.

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

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

Get a value from attributes or private settings
public __get ( string $name ) : mixed
$name string The name of the value
Результат mixed

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

Test if property is set either as an attribute or private setting
С версии: 2.2.0
public __isset ( string $name ) : boolean
$name string The name of the attribute or private setting.
Результат boolean

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

Set an attribute or private setting value
public __set ( string $name, mixed $value ) : void
$name string The name of the value to set
$value mixed The value to set
Результат void

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

Unset a property from private settings or attribute.
С версии: 2.2.0
public __unset ( string $name ) : void
$name string The name of the attribute or metadata.
Результат void

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

Get the widget context
С версии: 1.8.0
public getContext ( ) : string
Результат string

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

Get the title of the widget
С версии: 1.8.0
public getTitle ( ) : string
Результат string

initializeAttributes() защищенный Метод

Set subtype to widget.
protected initializeAttributes ( ) : void
Результат void

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

Move the widget
С версии: 1.8.0
public move ( integer $column, integer $rank ) : void
$column integer The widget column
$rank integer Zero-based rank from the top of the column
Результат void

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

Plugins can override the save mechanism using the plugin hook: 'widget_settings', . The widget and the parameters are passed. The plugin hook handler should return true to indicate that it has successfully saved the settings.
С версии: 1.8.0
public saveSettings ( array $params ) : boolean
$params array An array of name => value parameters
Результат boolean

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

Set the widget context
С версии: 1.8.0
public setContext ( string $context ) : boolean
$context string The widget context
Результат boolean