本文整理汇总了PHP中UrlManager::get_url_data方法的典型用法代码示例。如果您正苦于以下问题:PHP UrlManager::get_url_data方法的具体用法?PHP UrlManager::get_url_data怎么用?PHP UrlManager::get_url_data使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UrlManager
的用法示例。
在下文中一共展示了UrlManager::get_url_data方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array_keys
$courses = Database::store_result($result);
$course_list_leys = array_keys($course_list);
foreach ($courses as $course) {
if (!in_array($course['id'], $course_list_leys)) {
$no_course_list[$course['id']] = $course;
}
}
}
if ($add_type == 'multiple') {
$link_add_type_unique = '<a href="' . api_get_self() . '?add_type=unique&access_url_id=' . $access_url_id . '">' . get_lang('SessionAddTypeUnique') . '</a>';
$link_add_type_multiple = get_lang('SessionAddTypeMultiple');
} else {
$link_add_type_unique = get_lang('SessionAddTypeUnique');
$link_add_type_multiple = '<a href="' . api_get_self() . '?add_type=multiple&access_url_id=' . $access_url_id . '">' . get_lang('SessionAddTypeMultiple') . '</a>';
}
$url_list = UrlManager::get_url_data();
?>
<div style="text-align: left;">
<?php
echo $link_add_type_unique;
?>
| <?php
echo $link_add_type_multiple;
?>
</div>
<br /><br />
<form name="formulaire" method="post" action="<?php
echo api_get_self();
?>
" style="margin:0px;" <?php
示例2: get_lang
}
// action menu
echo '<div class="actions">';
echo Display::url(Display::return_icon('new_link.png', get_lang('AddUrl'), array(), ICON_SIZE_MEDIUM), api_get_path(WEB_CODE_PATH) . 'admin/access_url_edit.php');
echo Display::url(Display::return_icon('user.png', get_lang('ManageUsers'), array(), ICON_SIZE_MEDIUM), api_get_path(WEB_CODE_PATH) . 'admin/access_url_edit_users_to_url.php');
echo Display::url(Display::return_icon('course.png', get_lang('ManageCourses'), array(), ICON_SIZE_MEDIUM), api_get_path(WEB_CODE_PATH) . 'admin/access_url_edit_courses_to_url.php');
//echo Display::url(Display::return_icon('session.png', get_lang('ManageSessions'), array(), ICON_SIZE_MEDIUM), api_get_path(WEB_CODE_PATH).'admin/access_url_edit_sessions_to_url.php');
$userGroup = new UserGroup();
if ($userGroup->getUseMultipleUrl()) {
echo Display::url(Display::return_icon('class.png', get_lang('ManageUserGroup'), array(), ICON_SIZE_MEDIUM), api_get_path(WEB_CODE_PATH) . 'admin/access_url_edit_usergroup_to_url.php');
}
if (CourseCategoryManager::isMultipleUrlSupport()) {
echo Display::url(Display::return_icon('folder.png', get_lang('ManageCourseCategories'), array(), ICON_SIZE_MEDIUM), api_get_path(WEB_CODE_PATH) . 'admin/access_url_edit_course_category_to_url.php');
}
echo '</div>';
$sortable_data = UrlManager::get_url_data();
$urls = array();
foreach ($sortable_data as $row) {
//title
$url = Display::url($row['url'], $row['url'], array('target' => '_blank'));
$description = $row['description'];
//Status
$active = $row['active'];
if ($active == '1') {
$action = 'lock';
$image = 'right';
}
if ($active == '0') {
$action = 'unlock';
$image = 'wrong';
}
示例3: WSGetPortals
function WSGetPortals($params)
{
global $debug;
if (!WSHelperVerifyKey($params['secret_key'])) {
return return_error(WS_ERROR_SECRET_KEY);
}
$urlData = UrlManager::get_url_data();
$return = [];
foreach ($urlData as $data) {
$return[] = ['id' => $data['id'], 'url' => $data['url']];
}
if ($debug) {
error_log(print_r($return, 1));
}
return $return;
}