PHP Class Piwik\Plugins\Dashboard\Controller

Inheritance: extends Piwik\Plugin\Controller
Afficher le fichier Open project: piwik/piwik

Méthodes publiques

Méthode Description
copyDashboardToUser ( )
createNewDashboard ( ) Creates a new dashboard for the current user User needs to be logged in
embeddedIndex ( ) this
getAllDashboards ( ) Outputs all available dashboards for the current user as a JSON string
getDashboardLayout ( $checkToken = true )
index ( ) this is the exported widget
removeDashboard ( ) Removes the dashboard with the given id
resetLayout ( ) Resets the dashboard to the default widget configuration
saveLayout ( ) Saves the layout for the current user anonymous = in the session authenticated user = in the DB
saveLayoutAsDefault ( ) Saves the layout as default

Méthodes protégées

Méthode Description
_getDashboardView ( $template )
getAvailableLayouts ( ) : array Returns all available column layouts for the dashboard
getLayout ( integer $idDashboard ) : string Get the dashboard layout for the current user (anonymous or logged user)
init ( )

Private Methods

Méthode Description
getModel ( )

Method Details

_getDashboardView() protected méthode

protected _getDashboardView ( $template )

copyDashboardToUser() public méthode

public copyDashboardToUser ( )

createNewDashboard() public méthode

Creates a new dashboard for the current user User needs to be logged in
public createNewDashboard ( )

embeddedIndex() public méthode

this
public embeddedIndex ( )

getAllDashboards() public méthode

Outputs all available dashboards for the current user as a JSON string
public getAllDashboards ( )

getAvailableLayouts() protected méthode

Returns all available column layouts for the dashboard
protected getAvailableLayouts ( ) : array
Résultat array

getDashboardLayout() public méthode

public getDashboardLayout ( $checkToken = true )

getLayout() protected méthode

Get the dashboard layout for the current user (anonymous or logged user)
protected getLayout ( integer $idDashboard ) : string
$idDashboard integer
Résultat string $layout

index() public méthode

this is the exported widget
public index ( )

init() protected méthode

protected init ( )

removeDashboard() public méthode

Removes the dashboard with the given id
public removeDashboard ( )

resetLayout() public méthode

Resets the dashboard to the default widget configuration
public resetLayout ( )

saveLayout() public méthode

Saves the layout for the current user anonymous = in the session authenticated user = in the DB
public saveLayout ( )

saveLayoutAsDefault() public méthode

Saves the layout as default
public saveLayoutAsDefault ( )