本文整理匯總了PHP中CModule::Includemodule方法的典型用法代碼示例。如果您正苦於以下問題:PHP CModule::Includemodule方法的具體用法?PHP CModule::Includemodule怎麽用?PHP CModule::Includemodule使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CModule
的用法示例。
在下文中一共展示了CModule::Includemodule方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: elseif
$arResult['SHOW_SECTION_PROJECTS'] = 'N';
}
$arResult['SHOW_SECTION_MANAGE'] = $arParams['SHOW_SECTION_MANAGE'];
$arResult['F_SEARCH'] = null;
if (strlen($fTitle = tasksGetFilter("F_TITLE")) > 0) {
$arResult['F_SEARCH'] = $fTitle;
} elseif (intval($fID = tasksGetFilter("F_META::ID_OR_NAME")) > 0) {
$arResult['F_SEARCH'] = $fID;
}
if ($arParams['SHOW_SECTIONS_BAR'] === 'Y' || $arParams['SHOW_FILTER_BAR'] === 'Y' || $arParams['SHOW_COUNTERS_BAR'] === 'Y') {
// Show this section ONLY if given user is head of department
// and logged in user is admin or given user or manager of given user
if ($arParams['SHOW_SECTION_MANAGE'] === 'A') {
$arResult['SHOW_SECTION_MANAGE'] = 'N';
if ($isAccessToCounters) {
if (CModule::Includemodule('intranet')) {
$arDepartments = CIntranetUtils::GetSubordinateDepartments($arParams['USER_ID'], $bRecursive = false);
}
if (!empty($arDepartments)) {
$arResult['SHOW_SECTION_MANAGE'] = 'Y';
}
}
}
if ($arResult['SHOW_SECTION_MANAGE'] === 'Y' && $arParams['GROUP_ID'] > 0) {
$arResult['SHOW_SECTION_MANAGE'] = 'N';
}
if ($arResult['SHOW_SECTION_MANAGE'] === 'Y') {
$arResult['SECTION_MANAGE_COUNTER'] = 0;
if ($arEmployees = CTaskIntranetTools::getImmediateEmployees($arParams['USER_ID'])) {
foreach ($arEmployees as $employeeId) {
$employeeId = (int) $employeeId;