mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
[Contests] Added buttons for activate/deactivate all
This commit is contained in:
@@ -122,4 +122,24 @@ class Contesting_model extends CI_Model {
|
||||
$this->db->where('id', $id);
|
||||
$this->db->update('contest', $data);
|
||||
}
|
||||
|
||||
function activateall() {
|
||||
$data = array(
|
||||
'active' => '1',
|
||||
);
|
||||
|
||||
$this->db->update('contest', $data);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function deactivateall() {
|
||||
$data = array(
|
||||
'active' => '0',
|
||||
);
|
||||
|
||||
$this->db->update('contest', $data);
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user