original_string: public function resetLayout()
      {
          $this->checkTokenInUrl();
          if (Piwik::isUserIsAnonymous()) {
              $session = new SessionNamespace("Dashboard");
              $session->dashboardLayout = $this->dashboard->getDefaultLayout();
              $session->setExpirationSeconds(1800);
          } else {
              Request::processRequest('Dashboard.resetDashboardLayout');
          }
      }
code: public function resetLayout()
      {
          $this->checkTokenInUrl();
          if (Piwik::isUserIsAnonymous()) {
              $session = new SessionNamespace("Dashboard");
              $session->dashboardLayout = $this->dashboard->getDefaultLayout();
              $session->setExpirationSeconds(1800);
          } else {
              Request::processRequest('Dashboard.resetDashboardLayout');
          }
      }
code_tokens: public function resetLayout ( ) { $ this -> checkTokenInUrl ( ) ; if ( Piwik :: isUserIsAnonymous ( ) ) { $ session = new SessionNamespace ( "Dashboard" ) ; $ session -> dashboardLayout = $ this -> dashboard -> getDefaultLayout ( ) ; $ session -> setExpirationSeconds ( 1800 ) ; } else { Request :: processRequest ( 'Dashboard.resetDashboardLayout' ) ; } }
docstring: Resets the dashboard to the default widget configuration
docstring_tokens: Resets the dashboard to the default widget configuration