PHP 클래스 Elgg\WidgetsService

Use the elgg_* versions instead.
부터: 1.9.0
파일 보기 프로젝트 열기: elgg/elgg 1 사용 예제들

공개 메소드들

메소드 설명
canEditLayout ( $context, $user_guid )
createWidget ( $owner_guid, $handler, $context, $access_id = null )
getAllTypes ( )
getNameById ( string $id, string $context = '', ElggEntity $container = null ) : string | boolean Returns widget name based on id
getTypes ( array $params = [] ) : WidgetDefinition[]
getWidgets ( $owner_guid, $context )
registerType ( WidgetDefinition $definition ) : boolean
unregisterType ( string $id ) : boolean
validateType ( string $id, string $context = null, ElggEntity $container = null ) Checks if a widget type exists for a given id

메소드 상세

canEditLayout() 공개 메소드

또한 보기: elgg_can_edit_widget_layout
부터: 1.9.0
public canEditLayout ( $context, $user_guid )

createWidget() 공개 메소드

또한 보기: elgg_create_widget
부터: 1.9.0
public createWidget ( $owner_guid, $handler, $context, $access_id = null )

getAllTypes() 공개 메소드

부터: 1.9.0
public getAllTypes ( )

getNameById() 공개 메소드

Returns widget name based on id
부터: 2.2.0
public getNameById ( string $id, string $context = '', ElggEntity $container = null ) : string | boolean
$id string Widget identifier
$context string Context to check
$container ElggEntity Optional limit widget definitions to a container
리턴 string | boolean

getTypes() 공개 메소드

부터: 1.9.0
public getTypes ( array $params = [] ) : WidgetDefinition[]
$params array Associative array of params used to determine what to return array ( 'context' => string (defaults to elgg_get_context()), 'container' => \ElggEntity (defaults to null) )
리턴 WidgetDefinition[]

getWidgets() 공개 메소드

또한 보기: elgg_get_widgets
부터: 1.9.0
public getWidgets ( $owner_guid, $context )

registerType() 공개 메소드

또한 보기: elgg_register_widget_type
부터: 1.9.0
public registerType ( WidgetDefinition $definition ) : boolean
$definition WidgetDefinition
리턴 boolean

unregisterType() 공개 메소드

또한 보기: elgg_unregister_widget_type
부터: 1.9.0
public unregisterType ( string $id ) : boolean
$id string
리턴 boolean

validateType() 공개 메소드

Checks if a widget type exists for a given id
또한 보기: elgg_is_widget_type
부터: 1.9.0
public validateType ( string $id, string $context = null, ElggEntity $container = null )
$id string Widget identifier
$context string Optional context to check
$container ElggEntity Optional limit widget definitions to a container