示例#1
0
 /**
  * 删除一个图片数据
  *
  * @param Int $id
  * @return Boolean
  */
 public function delete($id)
 {
     $kc_image = $this->get($id);
     $this->clear($kc_image['kc_folder_id']);
     $result = parent::delete($id);
     $this->delete_attach($kc_image['attach_id']);
     return $result;
 }
示例#2
0
 /**
  * 删除一个文件夹
  *
  * @param Int $id
  * @return Boolean
  */
 public function delete($id)
 {
     $folder = $this->get($id);
     $this->clear($id);
     return parent::delete($id);
 }