/** * 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(); }
/** * @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()); }