예제 #1
0
 /**
  * Backup cernet_user, cernet_team
  */
 public function backup()
 {
     $data['statecode'] = 1;
     DBModel::updateDB('cernet_user', array(), $data);
     DBModel::copyDB('cernet_user', 'second_user');
     DBModel::copyDB('cernet_team', 'second_team');
     DBModel::copyDB('cernet_teacher', 'second_teacher');
     DBModel::copyDB('cernet_report', 'second_report');
     DBModel::copyDB('cernet_teammate', 'second_teammate');
 }