PHP Class WidgetManager

Afficher le fichier Open project: sourcefabric/newscoop Class Usage Examples

Méthodes publiques

Méthode Description
AddWidget ( integer $widgetId, $context, integer $uid = NULL, integer $order = NULL ) : boolean Add widget to user dashboard
ExtPath ( )
GetAvailable ( integer | null $uid = NULL ) : array Get available widgets for user
GetWidgetsByContext ( IWidgetContext $context ) : array Get widgets by context.
SetDefaultWidgets ( integer $p_uid ) : void Set default widgets for g_user
SetDefaultWidgetsAll ( ) : void Set default widgets for all existing users (called after install/upgrade)

Method Details

AddWidget() public static méthode

Add widget to user dashboard
public static AddWidget ( integer $widgetId, $context, integer $uid = NULL, integer $order = NULL ) : boolean
$widgetId integer
$uid integer
$order integer
Résultat boolean

ExtPath() public static méthode

public static ExtPath ( )

GetAvailable() public static méthode

Get available widgets for user
public static GetAvailable ( integer | null $uid = NULL ) : array
$uid integer | null
Résultat array of IWidget

GetWidgetsByContext() public static méthode

Get widgets by context.
public static GetWidgetsByContext ( IWidgetContext $context ) : array
$context IWidgetContext
Résultat array of IWidget

SetDefaultWidgets() public static méthode

Set default widgets for g_user
public static SetDefaultWidgets ( integer $p_uid ) : void
$p_uid integer
Résultat void

SetDefaultWidgetsAll() public static méthode

Set default widgets for all existing users (called after install/upgrade)
public static SetDefaultWidgetsAll ( ) : void
Résultat void