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


PHP Photo::deletePhotos方法代碼示例

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


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

示例1: delete

 public static function delete($id)
 {
     global $db;
     $db->query("DELETE FROM land WHERE id={$id}");
     Photo::deletePhotos(HOUSE, $id);
 }
開發者ID:alex731,項目名稱:m12private,代碼行數:6,代碼來源:Land_.php

示例2: delete

 public static function delete($id)
 {
     global $db;
     $db->query("SELECT id FROM flat WHERE tenement_id={$id}");
     $rows = $db->fetchAll();
     foreach ($rows as $row) {
         Flat::delete($row['id']);
     }
     $db->query("DELETE FROM tenement WHERE id={$id}");
     Photo::deletePhotos(TENEMENT, $id);
 }
開發者ID:alex731,項目名稱:m12private,代碼行數:11,代碼來源:Tenement.php

示例3: delete

 public static function delete($id)
 {
     global $db;
     $db->query("DELETE FROM commercial WHERE id={$id}");
     Photo::deletePhotos(COMMERCIAL, $id);
 }
開發者ID:alex731,項目名稱:m12private,代碼行數:6,代碼來源:Commercial.php

示例4: action

 function action()
 {
     $where = " WHERE 1";
     if (isset($_POST['b1']) && $_POST['b1'] == "Удалить") {
         foreach ($_REQUEST['id_check'] as $k => $v) {
             Photo::deletePhotos($v, $this->class_name);
             DB::query("DELETE FROM `" . $this->table_name . "` WHERE `id` = '" . $v . "'");
         }
     }
     $a = array();
     $a['categoryID'] = array('Родитель', '20%', true);
     $a['name'] = array('Заголовок', '80%', true);
     $btn = array();
     $btn[] = "Удалить";
     $category_id = isset($_GET['categoryID']) ? $_GET['categoryID'] : 0;
     $where .= ' && `categoryID` = "' . DB::escape($category_id) . '"';
     $oTable = new Table("admin.php?act=" . str_replace('action', '', __FUNCTION__) . "&page=");
     return $this->InIndex('Категории', $oTable->getTable($this, $this->class_name, $this->table_name, $a, $this->links_per_page, $btn, $where));
 }
開發者ID:belkov,項目名稱:o3dshop,代碼行數:19,代碼來源:Category.php

示例5: action

 function action()
 {
     $where = " WHERE 1";
     if (isset($_POST['b1']) && $_POST['b1'] == "Удалить") {
         foreach ($_REQUEST['id_check'] as $k => $v) {
             Photo::deletePhotos($v, $this->class_name);
             DB::query("DELETE FROM `" . $this->table_name . "` WHERE `id` = '" . $v . "'");
         }
     }
     $a = array();
     $a['main'] = array('Изображение', '15%', true);
     $a['categoryID'] = array('Категория', '15%', true);
     $a['name'] = array('Название', '20%', true);
     $a['price'] = array('Стоимость', '50%', true);
     $btn = array();
     $btn[] = "Удалить";
     $oTable = new Table("admin.php?act=" . str_replace('action', '', __FUNCTION__) . "&page=");
     return $this->InIndex('Товары', $oTable->getTable($this, $this->class_name, $this->table_name, $a, $this->links_per_page, $btn));
 }
開發者ID:belkov,項目名稱:o3dshop,代碼行數:19,代碼來源:Product.php

示例6: delete

 public static function delete($id)
 {
     global $db;
     Photo::deletePhotos(FLAT, $id);
     $db->query("DELETE FROM flat WHERE id={$id}");
 }
開發者ID:alex731,項目名稱:m12private,代碼行數:6,代碼來源:Flat.php


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