本文整理匯總了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);
}
示例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);
}
示例3: delete
public static function delete($id)
{
global $db;
$db->query("DELETE FROM commercial WHERE id={$id}");
Photo::deletePhotos(COMMERCIAL, $id);
}
示例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));
}
示例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));
}
示例6: delete
public static function delete($id)
{
global $db;
Photo::deletePhotos(FLAT, $id);
$db->query("DELETE FROM flat WHERE id={$id}");
}