PHP 클래스 ElggWidget, Elgg

Stores metadata in private settings rather than as ElggMetadata
상속: extends ElggObject
파일 보기 프로젝트 열기: elgg/elgg 1 사용 예제들

공개 메소드들

메소드 설명
__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