本文整理汇总了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;
}