本文整理匯總了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();
}