/** * Returns parent id * * @param int $cat_id * @return int */ public function getCatParent($cat_id) { require_once LIBS . 'Category.php'; $category = new Category(); return $category->getCatParent($this, $cat_id); }