_table = 'common_process'; $this->_pk = 'processid'; parent::__construct(); } public function delete_process($name, $time) { $name = addslashes($name); return DB::delete('common_process', "processid='$name' OR expiry<".intval($time)); } } ?>