Kohana ORM Model Ubigeo

Kohana ubigeo


class Model_Ubigeo extends ORM {

    protected $_table_name = "ubigeo";

    function getProvince(){    
    return substr($this->id, 0, 4)."00";
    }

    function getDepartment(){
    return substr($this->id, 0, 2)."0000";      
    }
}
post-author