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