當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CExtranet::GetExtranetGroupUsers方法代碼示例

本文整理匯總了PHP中CExtranet::GetExtranetGroupUsers方法的典型用法代碼示例。如果您正苦於以下問題:PHP CExtranet::GetExtranetGroupUsers方法的具體用法?PHP CExtranet::GetExtranetGroupUsers怎麽用?PHP CExtranet::GetExtranetGroupUsers使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CExtranet的用法示例。


在下文中一共展示了CExtranet::GetExtranetGroupUsers方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

                     require_once $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/epilog_after.php";
                     die;
                 }
             }
         }
     }
     $arUsersToFilter = array();
     $dbRequests = CSocNetUserToGroup::GetList(array(), array("GROUP_ID" => $group_id, "<=ROLE" => SONET_ROLES_USER, "USER_ACTIVE" => "Y"), false, false, array("ID", "USER_ID", "ROLE"));
     if ($dbRequests) {
         while ($arRequests = $dbRequests->Fetch()) {
             $arUsersToFilter[] = $arRequests["USER_ID"];
         }
     }
 } elseif ($EXTERNAL == 'A' && strlen($site) > 0 && CModule::IncludeModule("extranet") && CExtranet::IsExtranetSite($site)) {
     if ($GLOBALS["APPLICATION"]->GetGroupRight("socialnetwork", false, "Y", "Y", array($site, false)) >= "W") {
         $arUsersToFilter = CExtranet::GetExtranetGroupUsers();
     } else {
         $arUsersToFilter = CExtranet::GetMyGroupsUsers($site);
     }
 } elseif ($EXTERNAL == 'A' && CModule::IncludeModule("extranet") && CExtranet::IsIntranetUser()) {
     $arUsersToFilter = CExtranet::GetIntranetUsers();
 } elseif (IsModuleInstalled('extranet')) {
     require_once $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/epilog_after.php";
     die;
 }
 $matches = array();
 if (preg_match('/^(.*?)<[a-z0-9.\\-_]+@[a-z0-9.\\-]+> \\[([\\d]+?)\\]/i', $search, $matches)) {
     $matches[2] = intval($matches[2]);
     if ($matches[2] > 0 && (!is_array($arUsersToFilter) || in_array($matches[2], $arUsersToFilter))) {
         $dbRes = CUser::GetByID($matches[2]);
         if ($arRes = $dbRes->Fetch()) {
開發者ID:mrdeadmouse,項目名稱:u136006,代碼行數:31,代碼來源:ajax.php

示例2: str_replace

 } else {
     $arParams["NAME_TEMPLATE"] = str_replace("#COMMA#", ",", CSite::GetNameFormat(false));
 }
 $arParams['NAME_TEMPLATE'] .= $bIntranet ? ' <#EMAIL#>' : '';
 $arParams['NAME_TEMPLATE'] .= " [#ID#]";
 if (trim($arParams["sl"]) != "N") {
     $bUseLogin = true;
 } else {
     $bUseLogin = false;
 }
 if (strlen($arParams["ex"]) > 0 && $arParams["ex"] == "E" && strlen($arParams["site"]) > 0 && CModule::IncludeModule('extranet') && CExtranet::IsExtranetUser()) {
     $arUsersInMyGroupsID = CExtranet::GetMyGroupsUsers($arParams["site"]);
     $arPublicUsersID = CExtranet::GetPublicUsers();
     $arUsersToFilter = array_merge($arUsersInMyGroupsID, $arPublicUsersID);
 } elseif (strlen($arParams["ex"]) > 0 && $arParams["ex"] == "EA" && $GLOBALS["APPLICATION"]->GetGroupRight("socialnetwork", false, "Y", "Y", array($arParams["site"], false)) >= "K" && CModule::IncludeModule('extranet')) {
     $arExtranetUsersID = CExtranet::GetExtranetGroupUsers();
     $arIntranetUsersID = CExtranet::GetIntranetUsers();
     $arUsersToFilter = array_diff($arExtranetUsersID, $arIntranetUsersID);
 } elseif (strlen($arParams["ex"]) > 0 && $arParams["ex"] == "EA" && CModule::IncludeModule('extranet')) {
     $arUsersInMyGroupsID = CExtranet::GetMyGroupsUsers($arParams["site"]);
     $arIntranetUsersID = CExtranet::GetIntranetUsers();
     $arUsersToFilter = array_diff($arUsersInMyGroupsID, $arIntranetUsersID);
 } elseif (CModule::IncludeModule('extranet') && CExtranet::IsIntranetUser($arParams["site"])) {
     $arUsersToFilter = CExtranet::GetIntranetUsers();
 } elseif (CModule::IncludeModule('extranet')) {
     require_once $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/epilog_after.php";
     die;
 }
 $arResult = array();
 $dbUsers = CSocNetUser::SearchUsers($_REQUEST["search"], $arParams["gf"], $arParams["pe"]);
 if ($dbUsers && ($arUser = $dbUsers->Fetch())) {
開發者ID:k-kalashnikov,項目名稱:geekcon_new,代碼行數:31,代碼來源:search.php


注:本文中的CExtranet::GetExtranetGroupUsers方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。