Exemplo n.º 1
0
 /**
  * Calculate next position relative to our parent
  *
  * @param ContentQuery $query
  * @deprecated since 2.3, and will be removed in 2.4
  */
 protected function addCriteriaToPositionQuery($query)
 {
     $contents = ContentFolderQuery::create()->filterByFolderId($this->getDefaultFolderId())->filterByDefaultFolder(true)->select('content_id')->find();
     // Filtrer la requete sur ces produits
     if ($contents != null) {
         $query->filterById($contents, Criteria::IN);
     }
 }