Пример #1
0
 /**
  * @return \Mirasvit\Blog\Model\ResourceModel\Tag\Collection
  */
 public function getCollection()
 {
     if (!$this->collection) {
         $this->collection = $this->tagCollectionFactory->create()->joinPopularity();
     }
     return $this->collection;
 }
Пример #2
0
 /**
  * @return ResourceModel\Tag\Collection
  */
 public function getTags()
 {
     $ids = $this->getTagIds();
     $ids[] = 0;
     $collection = $this->tagCollectionFactory->create()->addFieldToFilter('tag_id', $ids);
     return $collection;
 }