'ASC', ); protected $_has_one = array( 'LIBVOLUME'=>array('foreign_key'=>'VOLUME_NAME','far_key'=>'VOLUME_NAME'), 'VOLUME'=>array('foreign_key'=>'VOLUME_NAME','far_key'=>'VOLUME_NAME'), ); protected $_display_filters = array( 'DATE_TIME'=>array( array('TSM_ORM::date',array(':value','d-M-Y')), ), ); public function lastuse() { // We'll find the last record foreach ($this->order_by('DATE_TIME DESC')->find_all() as $r) return $r; } public function backupid() { return sprintf('%s.%s.%s',$this->BACKUP_SERIES,$this->BACKUP_OPERATION,$this->VOLUME_SEQ); } } ?>