array('far_key'=>'id'), ); protected $_has_one = array( 'record_id'=>array('model'=>'Record_ID','far_key'=>'id'), ); protected $_sorting = array( 'status'=>'DESC', 'name'=>'ASC', ); protected $_display_filters = array( 'name'=>array( array('strtoupper',array(':value')), ), 'status'=>array( array('StaticList_YesNo::get',array(':value')), ), ); /** * Return an instance of this Module's Model * * @param $id PK of Model */ public function instance($id=NULL) { return ORM::factory(ucwords($this->name),$id); } public function list_external() { return $this->_where_active()->where('external','=',TRUE)->find_all(); } } ?>