예제 #1
0
파일: Category.php 프로젝트: kingsj/core
 /**
  * Check controller visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && !is_null($this->getCategory()) && $this->getCategory()->isVisible();
 }
예제 #2
0
파일: Product.php 프로젝트: kingsj/core
 /**
  * Check controller visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getProduct();
 }