當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Common::deleteRelativeImage方法代碼示例

本文整理匯總了PHP中Common::deleteRelativeImage方法的典型用法代碼示例。如果您正苦於以下問題:PHP Common::deleteRelativeImage方法的具體用法?PHP Common::deleteRelativeImage怎麽用?PHP Common::deleteRelativeImage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Common的用法示例。


在下文中一共展示了Common::deleteRelativeImage方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: deleteClear

 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();
 }
開發者ID:lz1988,項目名稱:stourwebcms,代碼行數:9,代碼來源:attr.php

示例2: deleteClear

 public function deleteClear()
 {
     $piclist = explode(',', $this->piclist);
     foreach ($piclist as $k => $v) {
         $img_arr = explode('||', $v);
         Common::deleteRelativeImage($img_arr[0]);
     }
     $this->delete();
 }
開發者ID:lz1988,項目名稱:stourwebcms,代碼行數:9,代碼來源:room.php

示例3: deleteClear

 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();
 }
開發者ID:lz1988,項目名稱:stourwebcms,代碼行數:13,代碼來源:photo.php

示例4: deleteClear

 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();
 }
開發者ID:lz1988,項目名稱:stourwebcms,代碼行數:14,代碼來源:spot.php

示例5: deleteClear

 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();
 }
開發者ID:lz1988,項目名稱:stourwebcms,代碼行數:15,代碼來源:destinations.php

示例6: deleteClear

 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();
 }
開發者ID:lz1988,項目名稱:stourwebcms,代碼行數:16,代碼來源:hotel.php

示例7: delete

 public function delete()
 {
     $pic = $this->picurl;
     Common::deleteRelativeImage($pic);
     parent::delete();
 }
開發者ID:lz1988,項目名稱:stourwebcms,代碼行數:6,代碼來源:advertise.php

示例8: deleteClear

 public function deleteClear()
 {
     Common::deleteRelativeImage($this->litpic);
     // Common::deleteContentImage($this->content);
     $this->delete();
 }
開發者ID:lz1988,項目名稱:stourwebcms,代碼行數:6,代碼來源:picture.php

示例9: action_delpicture

 public function action_delpicture()
 {
     $pic = ARR::get($_POST, 'picturepath');
     Common::deleteRelativeImage($pic);
     echo 'ok';
 }
開發者ID:lz1988,項目名稱:stourwebcms,代碼行數:6,代碼來源:uploader.php

示例10: delete

 public function delete()
 {
     Common::deleteRelativeImage($this->picurl);
     parent::delete();
 }
開發者ID:lz1988,項目名稱:stourwebcms,代碼行數:5,代碼來源:icon.php


注:本文中的Common::deleteRelativeImage方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。