当前位置: 首页>>代码示例>>PHP>>正文


PHP UrlManager::get_url_rel_user_data方法代码示例

本文整理汇总了PHP中UrlManager::get_url_rel_user_data方法的典型用法代码示例。如果您正苦于以下问题:PHP UrlManager::get_url_rel_user_data方法的具体用法?PHP UrlManager::get_url_rel_user_data怎么用?PHP UrlManager::get_url_rel_user_data使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UrlManager的用法示例。


在下文中一共展示了UrlManager::get_url_rel_user_data方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get_lang

echo Display::url(Display::return_icon('view_more_stats.gif', get_lang('AddUserToURL'), ''), api_get_path(WEB_CODE_PATH) . 'admin/access_url_add_users_to_url.php');
echo '</div>';
api_display_tool_title($tool_name);
if (isset($_GET['action']) && $_GET['action'] == 'show_message') {
    Display::display_normal_message(Security::remove_XSS(stripslashes($_GET['message'])));
}
$nosessionUsersList = $sessionUsersList = array();
$ajax_search = $add_type == 'unique' ? true : false;
if ($ajax_search) {
    $Users = UrlManager::get_url_rel_user_data($access_url_id);
    foreach ($Users as $user) {
        $sessionUsersList[$user['user_id']] = $user;
    }
} else {
    $order_clause = api_sort_by_first_name() ? ' ORDER BY username, firstname, lastname' : ' ORDER BY username, lastname, firstname';
    $Users = UrlManager::get_url_rel_user_data(null, $order_clause);
    foreach ($Users as $user) {
        if ($user['access_url_id'] == $access_url_id) {
            $sessionUsersList[$user['user_id']] = $user;
        }
    }
    $sql = "SELECT u.user_id, lastname, firstname, username\n\t  \t  \tFROM {$tbl_user} u WHERE status <> " . ANONYMOUS . " " . $order_clause;
    $result = Database::query($sql);
    $Users = Database::store_result($result);
    $user_list_leys = array_keys($sessionUsersList);
    foreach ($Users as $user) {
        if (!in_array($user['user_id'], $user_list_leys)) {
            $nosessionUsersList[$user['user_id']] = $user;
        }
    }
}
开发者ID:ragebat,项目名称:chamilo-lms,代码行数:31,代码来源:access_url_edit_users_to_url.php

示例2: get_lang

echo '<div class="actions">';
echo Display::url(Display::return_icon('view_more_stats.gif', get_lang('AddUserToURL'), ''), api_get_path(WEB_CODE_PATH) . 'admin/access_url_add_users_to_url.php');
echo '</div>';
api_display_tool_title($tool_name);
if (isset($_GET['action']) && $_GET['action'] == 'show_message') {
    Display::display_normal_message(Security::remove_XSS(stripslashes($_GET['message'])));
}
$nosessionUsersList = $sessionUsersList = array();
$ajax_search = $add_type == 'unique' ? true : false;
if ($ajax_search) {
    $Users = UrlManager::get_url_rel_user_data($access_url_id);
    foreach ($Users as $user) {
        $sessionUsersList[$user['user_id']] = $user;
    }
} else {
    $Users = UrlManager::get_url_rel_user_data();
    foreach ($Users as $user) {
        if ($user['access_url_id'] == $access_url_id) {
            $sessionUsersList[$user['user_id']] = $user;
        }
    }
    $order_clause = api_sort_by_first_name() ? ' ORDER BY firstname, lastname, username' : ' ORDER BY lastname, firstname, username';
    $sql = "SELECT u.user_id, lastname, firstname, username " . " FROM {$tbl_user} u WHERE status <> " . ANONYMOUS . " " . $order_clause;
    $result = Database::query($sql);
    $Users = Database::store_result($result);
    $user_list_leys = array_keys($sessionUsersList);
    foreach ($Users as $user) {
        if (!in_array($user['user_id'], $user_list_leys)) {
            $nosessionUsersList[$user['user_id']] = $user;
        }
    }
开发者ID:ilosada,项目名称:chamilo-lms-icpna,代码行数:31,代码来源:access_url_edit_users_to_url.php


注:本文中的UrlManager::get_url_rel_user_data方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。