コード例 #1
0
ファイル: BlogPresenter.php プロジェクト: sg3tester/songator
 protected function createComponentTagCloud()
 {
     $cloud = new \TagCloud();
     $cloud->data = $this->tags->getCloud();
     $cloud->destination = "blog:";
     return $cloud;
 }
コード例 #2
0
 public function getCategory($category = '')
 {
     $category = $this->tagRepository->getByName($category);
     if ($category && $category->type == 'category') {
         return $category;
     }
     return FALSE;
 }