本文整理汇总了PHP中Publication::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP Publication::delete方法的具体用法?PHP Publication::delete怎么用?PHP Publication::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Publication
的用法示例。
在下文中一共展示了Publication::delete方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: camp_html_content_top
if (count($sectionsRemaining) > 0) {
$errorMsgs[] = getGS('There are $1 section(s) left.', count($sectionsRemaining));
$doDelete = false;
}
$articlesRemaining = Article::GetNumUniqueArticles($Pub);
if ($articlesRemaining > 0) {
$errorMsgs[] = getGS('There are $1 article(s) left.', $articlesRemaining);
$doDelete = false;
}
$subscriptionsRemaining = Subscription::GetNumSubscriptions($Pub);
if ($subscriptionsRemaining > 0) {
$errorMsgs[] = getGS('There are $1 subscription(s) left.', $subscriptionsRemaining);
$doDelete = false;
}
if ($doDelete) {
$publicationObj->delete();
camp_html_goto_page("/{$ADMIN}/pub");
} else {
$errorMsgs[] = getGS('The publication $1 could not be deleted.', '<B>' . htmlspecialchars($publicationObj->getName()) . '</B>');
}
echo camp_html_content_top(getGS("Deleting publication"), array("Pub" => $publicationObj));
?>
<P>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="8" class="message_box">
<TR>
<TD COLSPAN="2">
<B> <?php
putGS("Deleting publication");
?>
</B>
<HR NOSHADE SIZE="1" COLOR="BLACK">