本文整理汇总了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;