public function remove($id)
 {
     $this->load->model('Ad_model', 'ad');
     $this->ad->rm_by_position($id);
     $result = parent::remove($id);
     return $result;
 }
 public function remove($id)
 {
     $result = parent::remove($id);
     if ($result) {
         $this->load->model('admin_log_model', 'admin_log');
         foreach ($id as $_id) {
             $this->admin_log->clear($_id);
         }
         return TRUE;
     } else {
         return FALSE;
     }
 }
Exemple #3
0
 public function remove($id)
 {
     $rows = $this->search(array('ids' => $id));
     if (empty($rows)) {
         return FALSE;
     }
     foreach ($rows as $row) {
         if (($row['media_type'] == 'img' || $row['media_type'] == 'flash') && !empty($row['content'])) {
             $ad_file = APPPATH . "../data/{$row['content']}";
             file_exists($ad_file) && unlink($ad_file);
         }
     }
     return parent::remove($id);
 }
Exemple #4
0
 public function remove($id)
 {
     $rows = $this->db->where_in('id', $id)->get($this->table)->result_array();
     if (empty($rows)) {
         return FALSE;
     }
     foreach ($rows as $row) {
         if (!empty($row['logo'])) {
             $link_file = APPPATH . "../data/{$row['logo']}";
             file_exists($link_file) && unlink($link_file);
         }
     }
     return parent::remove($id);
 }
 public function remove($id)
 {
     $course = parent::get(array('id' => $id));
     $this->db->query('update user set god_course_count = god_course_count - 1 where id = ' . $course['god']);
     parent::remove($id);
 }
 public function remove($id)
 {
     $result = parent::remove($id);
     return $result;
 }
 public function remove($id, $pot = '')
 {
     $this->switching($this->_idx_table, $pot);
     return parent::remove($id);
 }