예제 #1
0
파일: category.php 프로젝트: staabm/redaxo
 /**
  * Returns TRUE if this category is the direct
  * parent of the other category.
  *
  * @param self $otherCat
  *
  * @return bool
  */
 public function isParent(self $otherCat)
 {
     return $this->getId() == $otherCat->getParentId() && $this->getClang() == $otherCat->getClang();
 }
예제 #2
0
 /**
  * @param string              $path
  * @param rex_category        $cat
  * @param rex_yrewrite_domain $domain
  *
  * @return string
  */
 public function appendCategory($path, rex_category $cat, rex_yrewrite_domain $domain)
 {
     return $path . '/' . $this->normalize($cat->getName(), $cat->getClang());
 }