private function getSitesFromIds($idSites, $limit = false)
    {
        $sites = $this->getModel()->getSitesFromIds($idSites, $limit);

        foreach ($sites as &$site) {
            $this->enrichSite($site);
        }

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

        return $sites;
    }
private function getSitesFromIds($idSites, $limit = false)
    {
        $sites = $this->getModel()->getSitesFromIds($idSites, $limit);

        foreach ($sites as &$site) {
            $this->enrichSite($site);
        }

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

        return $sites;
    }
private function getSitesFromIds ( $ idSites , $ limit = false ) { $ sites = $ this -> getModel ( ) -> getSitesFromIds ( $ idSites , $ limit ) ; foreach ( $ sites as & $ site ) { $ this -> enrichSite ( $ site ) ; } $ sites = Site :: setSitesFromArray ( $ sites ) ; return $ sites ; }
Returns the list of websites from the ID array in parameters.
The user access is not checked in this method so the ID have to be accessible by the user!

@param array $idSites list of website ID
@param bool $limit
@return array
Returns the list of websites from the ID array in parameters . The user access is not checked in this method so the ID have to be accessible by the user!