Exemple #1
0
 /**
  * Returns all entities filtered by category id
  * 
  * @param string $id Category id
  * @param integer $limit Optional limit. If null, then the value is taken from configuration
  * @return array
  */
 public function getAllByCategoryId($id, $limit = null)
 {
     if (is_null($limit)) {
         $limit = $this->config->getBlockPerPageCount();
     }
     return $this->postManager->fetchAllPublishedByCategoryId($id, $limit);
 }