Ejemplo n.º 1
0
 /**
  * Remove stored site-content indexes from a site and a page.
  *
  * @param Page $page
  *
  * @return IndexationRepository
  */
 private function removeIdxSite(Page $page)
 {
     $query = 'DELETE FROM idx_site_content WHERE site_uid = :site AND content_uid IN (SELECT content_uid FROM idx_page_content WHERE page_uid = :page)';
     $params = array('page' => $page->getUid(), 'site' => $page->getSite()->getUid());
     return $this->_executeQuery($query, $params);
 }