Beispiel #1
0
 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();
 }
Beispiel #2
0
 public function deleteClear()
 {
     $piclist = explode(',', $this->piclist);
     foreach ($piclist as $k => $v) {
         $img_arr = explode('||', $v);
         Common::deleteRelativeImage($img_arr[0]);
     }
     $this->delete();
 }
Beispiel #3
0
 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();
 }
Beispiel #4
0
 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();
 }
Beispiel #5
0
 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();
 }
Beispiel #6
0
 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();
 }
Beispiel #7
0
 public function delete()
 {
     $pic = $this->picurl;
     Common::deleteRelativeImage($pic);
     parent::delete();
 }
Beispiel #8
0
 public function deleteClear()
 {
     Common::deleteRelativeImage($this->litpic);
     // Common::deleteContentImage($this->content);
     $this->delete();
 }
Beispiel #9
0
 public function action_delpicture()
 {
     $pic = ARR::get($_POST, 'picturepath');
     Common::deleteRelativeImage($pic);
     echo 'ok';
 }
Beispiel #10
0
 public function delete()
 {
     Common::deleteRelativeImage($this->picurl);
     parent::delete();
 }