コード例 #1
0
ファイル: attr.php プロジェクト: lz1988/stourwebcms
 public function deleteClear()
 {
     Common::deleteRelativeImage($this->litpic);
     $children = ORM::factory('line_attr')->where("pid={$this->id}")->find_all()->as_array();
     foreach ($children as $child) {
         $child->deleteClear();
     }
     $this->delete();
 }
コード例 #2
0
ファイル: room.php プロジェクト: lz1988/stourwebcms
 public function deleteClear()
 {
     $piclist = explode(',', $this->piclist);
     foreach ($piclist as $k => $v) {
         $img_arr = explode('||', $v);
         Common::deleteRelativeImage($img_arr[0]);
     }
     $this->delete();
 }
コード例 #3
0
ファイル: photo.php プロジェクト: lz1988/stourwebcms
 public function deleteClear()
 {
     Common::deleteRelativeImage($this->litpic);
     $pictures = ORM::factory('photo_picture')->where("pid={$this->id}")->find_all()->as_array();
     foreach ($pictures as $picture) {
         if ($picture->id) {
             $picture->deleteClear();
         }
     }
     Common::deleteRelativeImage($this->litpic);
     // Common::deleteContentImage($this->content);
     $this->delete();
 }
コード例 #4
0
ファイル: spot.php プロジェクト: lz1988/stourwebcms
 public function deleteClear()
 {
     $tickets = ORM::factory('spot_ticket')->where("spotid={$this->id}")->find_all()->as_array();
     foreach ($tickets as $ticket) {
         $ticket->deleteClear();
     }
     Common::deleteRelativeImage($this->litpic);
     $piclist = explode(',', $this->piclist);
     foreach ($piclist as $k => $v) {
         $img_arr = explode('||', $v);
         Common::deleteRelativeImage($img_arr[0]);
     }
     $this->delete();
 }
コード例 #5
0
ファイル: destinations.php プロジェクト: lz1988/stourwebcms
 public function deleteClear()
 {
     $children = ORM::factory('destinations')->where("pid={$this->id}")->find_all()->as_array();
     foreach ($children as $child) {
         $child->deleteClear();
     }
     $this->updateSibling('del');
     Common::deleteRelativeImage($this->litpic);
     $piclist = explode(',', $this->piclist);
     foreach ($piclist as $k => $v) {
         $img_arr = explode('||', $v);
         Common::deleteRelativeImage($img_arr[0]);
     }
     $this->delete();
 }
コード例 #6
0
ファイル: hotel.php プロジェクト: lz1988/stourwebcms
 public function deleteClear()
 {
     $rooms = ORM::factory('hotel_room')->where("hotelid={$this->id}")->find_all()->as_array();
     foreach ($rooms as $room) {
         if ($room->id) {
             $room->deleteClear();
         }
     }
     Common::deleteRelativeImage($this->litpic);
     $piclist = explode(',', $this->piclist);
     foreach ($piclist as $k => $v) {
         $img_arr = explode('||', $v);
         Common::deleteRelativeImage($img_arr[0]);
     }
     $this->delete();
 }
コード例 #7
0
ファイル: advertise.php プロジェクト: lz1988/stourwebcms
 public function delete()
 {
     $pic = $this->picurl;
     Common::deleteRelativeImage($pic);
     parent::delete();
 }
コード例 #8
0
ファイル: picture.php プロジェクト: lz1988/stourwebcms
 public function deleteClear()
 {
     Common::deleteRelativeImage($this->litpic);
     // Common::deleteContentImage($this->content);
     $this->delete();
 }
コード例 #9
0
ファイル: uploader.php プロジェクト: lz1988/stourwebcms
 public function action_delpicture()
 {
     $pic = ARR::get($_POST, 'picturepath');
     Common::deleteRelativeImage($pic);
     echo 'ok';
 }
コード例 #10
0
ファイル: icon.php プロジェクト: lz1988/stourwebcms
 public function delete()
 {
     Common::deleteRelativeImage($this->picurl);
     parent::delete();
 }