public function index()
    {
        $view = $this->_getDashboardView('@Dashboard/index');
        $view->dashboardSettingsControl = new DashboardManagerControl();
        $view->hasSomeAdminAccess = Piwik::isUserHasSomeAdminAccess();
        $view->dashboards = array();
        if (!Piwik::isUserIsAnonymous()) {
            $login = Piwik::getCurrentUserLogin();

            $view->dashboards = $this->dashboard->getAllDashboards($login);
        }
        return $view->render();
    }
public function index()
    {
        $view = $this->_getDashboardView('@Dashboard/index');
        $view->dashboardSettingsControl = new DashboardManagerControl();
        $view->hasSomeAdminAccess = Piwik::isUserHasSomeAdminAccess();
        $view->dashboards = array();
        if (!Piwik::isUserIsAnonymous()) {
            $login = Piwik::getCurrentUserLogin();

            $view->dashboards = $this->dashboard->getAllDashboards($login);
        }
        return $view->render();
    }
public function index ( ) { $ view = $ this -> _getDashboardView ( '@Dashboard/index' ) ; $ view -> dashboardSettingsControl = new DashboardManagerControl ( ) ; $ view -> hasSomeAdminAccess = Piwik :: isUserHasSomeAdminAccess ( ) ; $ view -> dashboards = array ( ) ; if ( ! Piwik :: isUserIsAnonymous ( ) ) { $ login = Piwik :: getCurrentUserLogin ( ) ; $ view -> dashboards = $ this -> dashboard -> getAllDashboards ( $ login ) ; } return $ view -> render ( ) ; }
this is the exported widget
this is the exported widget