PHP Класс Piwik\Plugins\Dashboard\Controller

Наследование: extends Piwik\Plugin\Controller
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
_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 ( )

Приватные методы

Метод Описание
getModel ( )

Описание методов

_getDashboardView() защищенный Метод

protected _getDashboardView ( $template )

copyDashboardToUser() публичный Метод

public copyDashboardToUser ( )

createNewDashboard() публичный Метод

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

embeddedIndex() публичный Метод

this
public embeddedIndex ( )

getAllDashboards() публичный Метод

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

getAvailableLayouts() защищенный Метод

Returns all available column layouts for the dashboard
protected getAvailableLayouts ( ) : array
Результат array

getDashboardLayout() публичный Метод

public getDashboardLayout ( $checkToken = true )

getLayout() защищенный Метод

Get the dashboard layout for the current user (anonymous or logged user)
protected getLayout ( integer $idDashboard ) : string
$idDashboard integer
Результат string $layout

index() публичный Метод

this is the exported widget
public index ( )

init() защищенный Метод

protected init ( )

removeDashboard() публичный Метод

Removes the dashboard with the given id
public removeDashboard ( )

resetLayout() публичный Метод

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

saveLayout() публичный Метод

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

saveLayoutAsDefault() публичный Метод

Saves the layout as default
public saveLayoutAsDefault ( )