本文整理匯總了PHP中Publication::create方法的典型用法代碼示例。如果您正苦於以下問題:PHP Publication::create方法的具體用法?PHP Publication::create怎麽用?PHP Publication::create使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Publication
的用法示例。
在下文中一共展示了Publication::create方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: serialize
'url_error_tpl_id' => $f_url_error_tpl_id,
'TimeUnit' => $f_time_unit,
'PaidTime' => $f_paid,
'TrialTime' => $f_trial,
'UnitCost' => $f_unit_cost,
'UnitCostAllLang' => $f_unit_cost_all_lang,
'Currency' => $f_currency,
'comments_enabled' => $f_comments_enabled,
'comments_article_default_enabled'=> $f_comments_article_default,
'comments_subscribers_moderated' => $f_comments_subscribers_moderated,
'comments_public_moderated' => $f_comments_public_moderated,
'comments_captcha_enabled' => $f_comments_captcha_enabled,
'comments_spam_blocking_enabled' => $f_comments_spam_blocking_enabled,
'seo' => serialize($f_seo));
$created = $publicationObj->create($columns);
if ($created) {
$alias->setPublicationId($publicationObj->getPublicationId());
$forum = camp_forum_create($publicationObj, $f_comments_public_enabled);
camp_forum_update($forum, $f_name, $f_comments_enabled, $f_comments_public_enabled);
$setting = new Phorum_setting('mod_emailcomments', 'S');
if (!$setting->exists()) {
$setting->create();
}
$setting->update(array('addresses' => array($forum->getForumId() => $f_comments_moderator_to)));
$setting->update(array('from_addresses' => array($forum->getForumId() => $f_comments_moderator_from)));
camp_html_add_msg("Publication created.", "ok");
camp_html_goto_page("/$ADMIN/pub/edit.php?Pub=".$publicationObj->getPublicationId());
} else {