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


PHP CBPDocument::setTasksUserStatus方法代码示例

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


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

示例1: array

         }
     }
     $arFilter[$op . $newKey] = $value;
 }
 $arResult["SORT"] = $gridSort["sort"];
 $arResult["RECORDS"] = array();
 if (!empty($_REQUEST['action_button_' . $arResult["GRID_ID"]]) && check_bitrix_sessid()) {
     $action = $_REQUEST['action_button_' . $arResult["GRID_ID"]];
     $ids = isset($_REQUEST['ID']) && is_array($_REQUEST['ID']) ? $_REQUEST['ID'] : null;
     if (isset($_REQUEST['action_all_rows_' . $arResult["GRID_ID"]]) && $_REQUEST['action_all_rows_' . $arResult["GRID_ID"]] == 'Y') {
         $ids = array();
     }
     if (is_array($ids)) {
         if (strpos($action, 'set_status_') === 0) {
             $status = substr($action, strlen('set_status_'));
             CBPDocument::setTasksUserStatus($targetUserId, $status, $ids, $arResult['ERRORS']);
         }
         if ($action == 'delegate_to' && !empty($_REQUEST['ACTION_DELEGATE_TO_ID'])) {
             if ($isAdmin || CBPHelper::checkUserSubordination($currentUserId, $_REQUEST['ACTION_DELEGATE_TO_ID'])) {
                 CBPDocument::delegateTasks($targetUserId, $_REQUEST['ACTION_DELEGATE_TO_ID'], $ids, $arResult['ERRORS']);
             } else {
                 $arResult['ERRORS'][] = GetMessage('BPATL_ERROR_DELEGATE');
             }
         }
     }
 }
 $dbRecordsList = CBPTaskService::GetList($gridSort["sort"], $arFilter, false, $gridOptions->GetNavParams(), $arSelectFields);
 $arResult['IS_MY_TASKS'] = $currentUserId == $targetUserId;
 $arResult['TARGET_USER_ID'] = (int) $targetUserId;
 $useComments = (bool) CModule::IncludeModule("forum");
 $workflows = array();
开发者ID:k-kalashnikov,项目名称:geekcon,代码行数:31,代码来源:component.php

示例2: isset

    $arFilter['WORKFLOW_TEMPLATE_ID'] = (int) $filter_workflow_template_id;
}
if ($allowAdminAccess && !empty($_REQUEST['action']) && check_bitrix_sessid()) {
    $ids = isset($_REQUEST['ID']) && is_array($_REQUEST['ID']) ? $_REQUEST['ID'] : array();
    if ($ids) {
        $errors = array();
        $action = $_REQUEST['action'];
        $status = 0;
        if (strpos($action, 'set_status_') === 0) {
            $status = substr($action, strlen('set_status_'));
            $action = 'set_status';
        }
        foreach ($ids as $id) {
            list($taskId, $userId) = explode('_', $id);
            if ($action == 'set_status' && $status > 0) {
                CBPDocument::setTasksUserStatus($userId, $status, $taskId, $errors);
            } elseif ($action == 'delegate' && !empty($_REQUEST['delegate_to'])) {
                CBPDocument::delegateTasks($userId, $_REQUEST['delegate_to'], $taskId, $errors);
            }
        }
        if ($errors) {
            foreach ($errors as $error) {
                $actionErrorMessage .= $error . PHP_EOL;
            }
        }
        unset($ids, $errors, $action, $status, $taskId, $userId);
    }
}
if ($actionErrorMessage) {
    $lAdmin->BeginPrologContent();
    CAdminMessage::ShowMessage($actionErrorMessage);
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:task_list.php

示例3: array

         }
     }
     $arFilter[$op . $newKey] = $value;
 }
 $arResult["SORT"] = $gridSort["sort"];
 $arResult["RECORDS"] = array();
 if (!empty($_REQUEST['action_button_' . $arResult["GRID_ID"]]) && check_bitrix_sessid()) {
     $action = $_REQUEST['action_button_' . $arResult["GRID_ID"]];
     $ids = isset($_REQUEST['ID']) && is_array($_REQUEST['ID']) ? $_REQUEST['ID'] : null;
     if (isset($_REQUEST['action_all_rows_' . $arResult["GRID_ID"]]) && $_REQUEST['action_all_rows_' . $arResult["GRID_ID"]] == 'Y') {
         $ids = array();
     }
     if (is_array($ids)) {
         if (strpos($action, 'set_status_') === 0) {
             $status = substr($action, strlen('set_status_'));
             CBPDocument::setTasksUserStatus($arParams['USER_ID'], $status, $ids, $arResult['ERRORS']);
         }
         if ($action == 'delegate_to' && !empty($_REQUEST['ACTION_DELEGATE_TO_ID'])) {
             if (CBPHelper::checkUserSubordination($arParams['USER_ID'], $_REQUEST['ACTION_DELEGATE_TO_ID'])) {
                 CBPDocument::delegateTasks($targetUserId, $_REQUEST['ACTION_DELEGATE_TO_ID'], $ids, $arResult['ERRORS']);
             } else {
                 $arResult['ERRORS'][] = GetMessage('BPATL_ERROR_DELEGATE');
             }
         }
     }
 }
 $dbRecordsList = CBPTaskService::GetList($gridSort["sort"], $arFilter, false, $gridOptions->GetNavParams(), $arSelectFields);
 $arResult['IS_MY_TASKS'] = $arParams['USER_ID'] == $targetUserId;
 $arResult['TARGET_USER_ID'] = (int) $targetUserId;
 $useComments = (bool) CModule::IncludeModule("forum");
 $workflows = array();
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:component.php


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