本文整理汇总了PHP中UrlManager::get_access_url_from_session方法的典型用法代码示例。如果您正苦于以下问题:PHP UrlManager::get_access_url_from_session方法的具体用法?PHP UrlManager::get_access_url_from_session怎么用?PHP UrlManager::get_access_url_from_session使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UrlManager
的用法示例。
在下文中一共展示了UrlManager::get_access_url_from_session方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_lang
}
if (!empty($_GET['user'])) {
SessionManager::unsubscribe_user_from_session($sessionId, $_GET['user']);
}
break;
}
$sessionHeader = Display::page_header(Display::return_icon('session.png', get_lang('Session')) . ' ' . $sessionInfo['name'], null, 'h3');
$url = Display::url(Display::return_icon('edit.png', get_lang('Edit'), array(), ICON_SIZE_SMALL), "session_edit.php?page=resume_session.php&id={$sessionId}");
$sessionTitle = Display::page_subheader(get_lang('GeneralProperties') . $url);
$generalCoach = api_get_user_info($sessionInfo['id_coach']);
$sessionField = new ExtraField('session');
$extraFieldData = $sessionField->getDataAndFormattedValues($sessionId);
$multiple_url_is_on = api_get_multiple_access_url();
$urlList = [];
if ($multiple_url_is_on) {
$urlList = UrlManager::get_access_url_from_session($sessionId);
}
$url = Display::url(Display::return_icon('edit.png', get_lang('Edit'), array(), ICON_SIZE_SMALL), "add_courses_to_session.php?page=resume_session.php&id_session={$sessionId}");
$courseListToShow = Display::page_subheader(get_lang('CourseList') . $url);
$courseListToShow .= '<table id="session-list-course" class="data_table">
<tr>
<th width="35%">' . get_lang('CourseTitle') . '</th>
<th width="30%">' . get_lang('CourseCoach') . '</th>
<th width="10%">' . get_lang('UsersNumber') . '</th>
<th width="25%">' . get_lang('Actions') . '</th>
</tr>';
if ($sessionInfo['nbr_courses'] == 0) {
$courseListToShow .= '<tr>
<td colspan="4">' . get_lang('NoCoursesForThisSession') . '</td>
</tr>';
} else {
示例2: elseif
} elseif ($session['visibility'] == 2) {
echo get_lang('Visible');
} elseif ($session['visibility'] == 3) {
echo api_ucfirst(get_lang('Invisible'));
}
?>
</td>
</tr>
<?php
$multiple_url_is_on = api_get_multiple_access_url();
if ($multiple_url_is_on) {
echo '<tr><td>';
echo 'URL';
echo '</td>';
echo '<td>';
$url_list = UrlManager::get_access_url_from_session($id_session);
foreach ($url_list as $url_data) {
echo $url_data['url'] . '<br />';
}
echo '</td></tr>';
}
?>
</table>
<br />
<?php
echo Display::page_subheader(get_lang('CourseList') . $url);
?>
<!--List of courses -->
<table class="data_table">
<tr>
<th width="35%"><?php