本文整理匯總了PHP中item::get_delete_form方法的典型用法代碼示例。如果您正苦於以下問題:PHP item::get_delete_form方法的具體用法?PHP item::get_delete_form怎麽用?PHP item::get_delete_form使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類item
的用法示例。
在下文中一共展示了item::get_delete_form方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: form_delete
public function form_delete($id)
{
$item = model_cache::get("item", $id);
access::required("view", $item);
access::required("edit", $item);
$v = new View("quick_delete_confirm.html");
$v->item = $item;
$v->form = item::get_delete_form($item);
print $v;
}
示例2: form_delete
public function form_delete($id)
{
$item = model_cache::get("item", $id);
access::required("view", $item);
access::required("edit", $item);
if ($item->is_album()) {
print t("Delete the album <b>%title</b>? All photos and movies in the album will also be deleted.", array("title" => html::purify($item->title)));
} else {
print t("Are you sure you want to delete <b>%title</b>?", array("title" => html::purify($item->title)));
}
$form = item::get_delete_form($item);
print $form;
}