public function getPatternMatchSites($pattern, $limit = false) { $ids = $this->getSitesIdWithAtLeastViewAccess(); if (empty($ids)) { return array(); } $sites = $this->getModel()->getPatternMatchSites($ids, $pattern, $limit); return $sites; }