Piwik\Plugins\Dashboard\Controller::removeDashboard PHP Метод

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

Removes the dashboard with the given id
public removeDashboard ( )
    public function removeDashboard()
    {
        $this->checkTokenInUrl();
        if (Piwik::isUserIsAnonymous()) {
            return;
        }
        $idDashboard = Common::getRequestVar('idDashboard', 1, 'int');
        // first layout can't be removed
        if ($idDashboard != 1) {
            $this->getModel()->deleteDashboardForUser($idDashboard, Piwik::getCurrentUserLogin());
        }
    }