本文整理匯總了PHP中Base_model::remove方法的典型用法代碼示例。如果您正苦於以下問題:PHP Base_model::remove方法的具體用法?PHP Base_model::remove怎麽用?PHP Base_model::remove使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Base_model
的用法示例。
在下文中一共展示了Base_model::remove方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: remove
public function remove($id)
{
$this->load->model('Ad_model', 'ad');
$this->ad->rm_by_position($id);
$result = parent::remove($id);
return $result;
}
示例2: remove
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;
}
}
示例3: remove
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);
}
示例4: remove
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);
}
示例5: remove
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);
}
示例6: remove
public function remove($id)
{
$result = parent::remove($id);
return $result;
}
示例7: remove
public function remove($id, $pot = '')
{
$this->switching($this->_idx_table, $pot);
return parent::remove($id);
}