private function getUserDashboards($userLogin)
    {
        $userDashboards = $this->dashboard->getAllDashboards($userLogin);

        $dashboards = array();

        foreach ($userDashboards as $userDashboard) {
            $widgets = $this->getVisibleWidgetsWithinDashboard($userDashboard);
            $dashboards[] = $this->buildDashboard($userDashboard, $widgets);
        }

        return $dashboards;
    }
private function getUserDashboards($userLogin)
    {
        $userDashboards = $this->dashboard->getAllDashboards($userLogin);

        $dashboards = array();

        foreach ($userDashboards as $userDashboard) {
            $widgets = $this->getVisibleWidgetsWithinDashboard($userDashboard);
            $dashboards[] = $this->buildDashboard($userDashboard, $widgets);
        }

        return $dashboards;
    }
private function getUserDashboards ( $ userLogin ) { $ userDashboards = $ this -> dashboard -> getAllDashboards ( $ userLogin ) ; $ dashboards = array ( ) ; foreach ( $ userDashboards as $ userDashboard ) { $ widgets = $ this -> getVisibleWidgetsWithinDashboard ( $ userDashboard ) ; $ dashboards [ ] = $ this -> buildDashboard ( $ userDashboard , $ widgets ) ; } return $ dashboards ; }
Get all dashboards which a user has created.

@param string $userLogin login of the user
@return \array[]
Get all dashboards which a user has created .