当前位置: 首页>>代码示例>>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;未经允许,请勿转载。