本文整理汇总了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];