original_string: public function getSitesWithAtLeastViewAccess($limit = false, $_restrictSitesToLogin = false)
      {
          $sitesId = $this->getSitesIdWithAtLeastViewAccess($_restrictSitesToLogin);
          return $this->getSitesFromIds($sitesId, $limit);
      }
code: public function getSitesWithAtLeastViewAccess($limit = false, $_restrictSitesToLogin = false)
      {
          $sitesId = $this->getSitesIdWithAtLeastViewAccess($_restrictSitesToLogin);
          return $this->getSitesFromIds($sitesId, $limit);
      }
code_tokens: public function getSitesWithAtLeastViewAccess ( $ limit = false , $ _restrictSitesToLogin = false ) { $ sitesId = $ this -> getSitesIdWithAtLeastViewAccess ( $ _restrictSitesToLogin ) ; return $ this -> getSitesFromIds ( $ sitesId , $ limit ) ; }
docstring: Returns the list of websites with the 'view' or 'admin' access for the current user.
  For the superUser it returns all the websites in the database.
  
  @param bool|int $limit Specify max number of sites to return
  @param bool $_restrictSitesToLogin Hack necessary when running scheduled tasks, where "Super User" is forced, but sometimes not desired, see #3017
  @return array array for each site, an array of information (idsite, name, main_url, etc.)
docstring_tokens: Returns the list of websites with the view or admin access for the current user . For the superUser it returns all the websites in the database .