ZenMagick 0.9.10


zenmagick.store.admin.dashbord\ZMDashboard
dashboard\ZMDashboard.php at line 30

Class ZMDashboard

ZMDashboard

public class ZMDashboard

The dashboard.

Author:
DerManoMann

Method Summary
static int

getColumns(int adminId)

Get the number of columns.

static array

getConfig(int adminId)

Get dashboard config.

static string

getLayout(int adminId)

Get the dashboard layout.

static array

getWidgetList(int adminId)

Get widget list.

static array

getWidgetsForColumn(int adminId, int column)

Get the configured widgets for the given column.

static void

setState(int adminId, string state)

Set dashboad state.

Method Detail

dashboard\ZMDashboard.php at line 49

getColumns

public static int getColumns(int adminId)

Get the number of columns.

Parameters:
adminId - The admin id.
Returns:
The number of columns.

dashboard\ZMDashboard.php at line 107

getConfig

public static array getConfig(int adminId)

Get dashboard config.

Parameters:
adminId - The admin id.
Returns:
config map.

dashboard\ZMDashboard.php at line 38

getLayout

public static string getLayout(int adminId)

Get the dashboard layout.

Parameters:
adminId - The admin id.
Returns:
The layout.

dashboard\ZMDashboard.php at line 72

getWidgetList

public static array getWidgetList(int adminId)

Get widget list.

Parameters:
adminId - The admin id.
Returns:
List of all available widgets.

dashboard\ZMDashboard.php at line 61

getWidgetsForColumn

public static array getWidgetsForColumn(int adminId, int column)

Get the configured widgets for the given column.

Parameters:
adminId - The admin id.
column - The column.
Returns:
List of widget definitions.

dashboard\ZMDashboard.php at line 97

setState

public static void setState(int adminId, string state)

Set dashboad state.

Parameters:
adminId - The admin id.
state - The state as JSON.

ZenMagick 0.9.10