本文整理汇总了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()) {
示例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())) {