Your IP : 216.73.217.64


Current Path : /home3/gp97/tbfmobile.97gp.net/app/sae/modules/Topic/Model/
Upload File :
Current File : //home3/gp97/tbfmobile.97gp.net/app/sae/modules/Topic/Model/Category.php

<?php

class Topic_Model_Category extends Core_Model_Default {

    public function __construct($params = array()) {
        parent::__construct($params);
        $this->_db_table = 'Topic_Model_Db_Table_Category';
        return $this;
    }

    public function delete() {
        $this->getTable()->deleteByParentId($this->getId());
        parent::delete();
        return $this;
    }

    public function getTopicCategories($topic_id) {
        return $this->getTable()->getTopicCategories($topic_id);
    }

    public function getChildren() {
        return $this->getTable()->getChildren($this->getId());
    }

    public function getMaxPosition($topic_id) {
        return $this->getTable()->getMaxPosition($topic_id);
    }
}