本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例7: delete
public function delete()
{
$pic = $this->picurl;
Common::deleteRelativeImage($pic);
parent::delete();
}
示例8: deleteClear
public function deleteClear()
{
Common::deleteRelativeImage($this->litpic);
// Common::deleteContentImage($this->content);
$this->delete();
}
示例9: action_delpicture
public function action_delpicture()
{
$pic = ARR::get($_POST, 'picturepath');
Common::deleteRelativeImage($pic);
echo 'ok';
}
示例10: delete
public function delete()
{
Common::deleteRelativeImage($this->picurl);
parent::delete();
}