/** * Returns the parent category id of passed category. * * @access protected * @param integer $category * @return integer or boolean $cmd */ protected function getParentCatId($category) { if (($parent = $this->objNestedSet->getParent($category)) && $parent->id != $this->nestedSetRootId) { return $parent->id; } return false; }