2020-11-03 16:06:35 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class Eqslmethods_model extends CI_Model {
|
|
|
|
|
|
|
|
function mark_all_as_sent() {
|
|
|
|
$data = array(
|
|
|
|
'COL_EQSL_QSL_SENT' => 'Y',
|
|
|
|
'COL_EQSL_QSLSDATE' => date('Y-m-d')." 00:00:00",
|
|
|
|
);
|
2022-07-04 18:12:39 +00:00
|
|
|
|
|
|
|
$this->db->group_start();
|
|
|
|
$this->db->where('COL_EQSL_QSL_SENT', 'N');
|
|
|
|
$this->db->or_where('COL_EQSL_QSL_SENT', 'R');
|
|
|
|
$this->db->or_where('COL_EQSL_QSL_SENT', 'Q');
|
|
|
|
$this->db->or_where('COL_EQSL_QSL_SENT', null);
|
|
|
|
$this->db->group_end();
|
|
|
|
|
2022-07-04 17:29:25 +00:00
|
|
|
$this->db->update($this->config->item('table_name'), $data);
|
2020-11-03 16:06:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|