本文整理匯總了PHP中Publication::getTrialTime方法的典型用法代碼示例。如果您正苦於以下問題:PHP Publication::getTrialTime方法的具體用法?PHP Publication::getTrialTime怎麽用?PHP Publication::getTrialTime使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Publication
的用法示例。
在下文中一共展示了Publication::getTrialTime方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Publication
$publicationObj = new Publication($f_publication_id);
if (Saas::singleton()->hasPermission("ManagePublicationSubscriptions")) {
$f_time_unit = Input::Get('f_time_unit');
$f_unit_cost = trim(Input::Get('f_unit_cost', 'float', '0.0'));
$f_unit_cost_all_lang = trim(Input::Get('f_unit_cost_all_lang', 'float', '0.0'));
$f_currency = trim(Input::Get('f_currency'));
$f_paid = Input::Get('f_paid', 'int');
$f_trial = Input::get('f_trial', 'int');
} else {
if (isset($publicationObj)) {
$f_time_unit = $publicationObj->getTimeUnit();
$f_unit_cost = p($publicationObj->getUnitCost());
$f_unit_cost_all_lang = p($publicationObj->getUnitCostAllLang());
$f_currency = p(htmlspecialchars($publicationObj->getCurrency()));
$f_paid = p($publicationObj->getPaidTime());
$f_trial = p($publicationObj->getTrialTime());
} else {
$f_time_unit = 'D';
$f_unit_cost = '';
$f_unit_cost_all_lang = '';
$f_currency = '';
$f_paid = '';
$f_trial = '';
}
}
$f_comments_enabled = Input::Get('f_comments_enabled', 'checkbox', 'numeric');
$f_comments_article_default = Input::Get('f_comments_article_default', 'checkbox', 'numeric');
$f_comments_public_enabled = Input::Get('f_comments_public_enabled', 'checkbox', 'numeric');
$f_comments_public_moderated = Input::Get('f_comments_public_moderated', 'checkbox', 'numeric');
$f_comments_subscribers_moderated = Input::Get('f_comments_subscribers_moderated', 'checkbox', 'numeric');
$f_comments_captcha_enabled = Input::Get('f_comments_captcha_enabled', 'checkbox', 'numeric');