本文整理匯總了PHP中Publication::getLanguages方法的典型用法代碼示例。如果您正苦於以下問題:PHP Publication::getLanguages方法的具體用法?PHP Publication::getLanguages怎麽用?PHP Publication::getLanguages使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Publication
的用法示例。
在下文中一共展示了Publication::getLanguages方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
exit;
}
$f_user_id = Input::Get('f_user_id', 'int', 0);
$f_publication_id = Input::Get('f_publication_id', 'int', 0);
$f_subscription_id = Input::Get('f_subscription_id', 'int', 0);
$f_section_number = Input::Get('f_section_number', 'array', array());
$f_section_id = Input::Get('f_section_id', 'array', array());
$f_language_set = Input::Get('f_language_set', 'string', 'all');
$f_subscription_start_date = Input::Get('f_subscription_start_date');
$f_subscription_days = Input::Get('f_subscription_days');
$success = true;
$publicationObj = new Publication($f_publication_id);
$languageObj = new Language($publicationObj->getDefaultLanguageId());
$languages = $publicationObj->getLanguages();
$manageUser = new User($f_user_id);
$errorMsgs = array();
$new_sections = array();
if ($f_language_set == 'all') {
if (is_array($f_section_number)) {
foreach ($f_section_number as $section_number) {
$new_sections[$section_number][] = 0;
}
}
} else {
if (is_array($f_section_id)) {
foreach ($f_section_id as $section_id) {
$id = explode('_', $section_id);
$new_sections[$id[0]][] = $id[1];