_table = 'connect_disktask'; $this->_pk = 'taskid'; parent::__construct(); } public function delete_by_status($status) { if (dintval($status)) { return DB::query('DELETE FROM %t WHERE status = %d', array($this->_table, $status)); } } }