public function getAllDashboards()
    {
        $this->checkTokenInUrl();

        if (Piwik::isUserIsAnonymous()) {
            Json::sendHeaderJSON();
            return '[]';
        }

        $login      = Piwik::getCurrentUserLogin();
        $dashboards = $this->dashboard->getAllDashboards($login);

        Json::sendHeaderJSON();
        return json_encode($dashboards);
    }
public function getAllDashboards()
    {
        $this->checkTokenInUrl();

        if (Piwik::isUserIsAnonymous()) {
            Json::sendHeaderJSON();
            return '[]';
        }

        $login      = Piwik::getCurrentUserLogin();
        $dashboards = $this->dashboard->getAllDashboards($login);

        Json::sendHeaderJSON();
        return json_encode($dashboards);
    }
public function getAllDashboards ( ) { $ this -> checkTokenInUrl ( ) ; if ( Piwik :: isUserIsAnonymous ( ) ) { Json :: sendHeaderJSON ( ) ; return '[]' ; } $ login = Piwik :: getCurrentUserLogin ( ) ; $ dashboards = $ this -> dashboard -> getAllDashboards ( $ login ) ; Json :: sendHeaderJSON ( ) ; return json_encode ( $ dashboards ) ; }
Outputs all available dashboards for the current user as a JSON string
Outputs all available dashboards for the current user as a JSON string