本文整理汇总了PHP中content::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP content::delete方法的具体用法?PHP content::delete怎么用?PHP content::delete使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类content
的用法示例。
在下文中一共展示了content::delete方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: delete
static function delete($reid)
{
//限制权限
return content::delete($reid);
}
示例2: json_save
<?php
include_once "../../includes/basics/header.inc";
?>
<div id="json_save_header"> <div class="json_message"><?php
json_save('extension', 'content', 'subject', 'content_id');
?>
</div></div>
<div id="json_delete_header"><div class="json_message">
<?php
if (!empty($_GET['delete']) && $_GET['delete'] == 1) {
$content_id = $_GET['header_id'];
$result = content::delete($content_id);
if ($result == 1) {
echo 'Comment is deleted!';
} else {
return false;
}
}
?>
</div></div>
<div id="json_drop_column">
<?php
if (!empty($_GET['delete']) && $_GET['delete'] == 1) {
$content_name = $_GET['content_name'];
$field_name = $_GET['field_name'];
$result = content::drop_column($content_name, $field_name);
if ($result == 1) {
echo 'Comment is deleted!';
} else {
示例3: _actionContentSilentItemDelete
private static function _actionContentSilentItemDelete()
{
$id = 0 + self::post(self::$class . "-" . self::$section["name"] . "-id");
$msg = "";
$res = content::delete($id);
if (!$res) {
$msg = msgr::errorGet();
$msg = $msg[0]["msg"];
}
echo "{res:" . ($res ? "true" : "false") . ",msg:\"" . self::libJsonPrepare($msg) . "\"}";
}