public function getAllSites()
    {
        Piwik::checkUserHasSuperUserAccess();

        $sites  = $this->getModel()->getAllSites();
        $return = array();
        foreach ($sites as $site) {
            $this->enrichSite($site);
            $return[$site['idsite']] = $site;
        }

        $return = Site::setSitesFromArray($return);

        return $return;
    }
public function getAllSites()
    {
        Piwik::checkUserHasSuperUserAccess();

        $sites  = $this->getModel()->getAllSites();
        $return = array();
        foreach ($sites as $site) {
            $this->enrichSite($site);
            $return[$site['idsite']] = $site;
        }

        $return = Site::setSitesFromArray($return);

        return $return;
    }
public function getAllSites ( ) { Piwik :: checkUserHasSuperUserAccess ( ) ; $ sites = $ this -> getModel ( ) -> getAllSites ( ) ; $ return = array ( ) ; foreach ( $ sites as $ site ) { $ this -> enrichSite ( $ site ) ; $ return [ $ site [ 'idsite' ] ] = $ site ; } $ return = Site :: setSitesFromArray ( $ return ) ; return $ return ; }
Returns all websites, requires Super User access

@return array The list of websites, indexed by idsite
Returns all websites requires Super User access