本文整理汇总了PHP中CCalendar::GetAccessibilityForUsers方法的典型用法代码示例。如果您正苦于以下问题:PHP CCalendar::GetAccessibilityForUsers方法的具体用法?PHP CCalendar::GetAccessibilityForUsers怎么用?PHP CCalendar::GetAccessibilityForUsers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCalendar
的用法示例。
在下文中一共展示了CCalendar::GetAccessibilityForUsers方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Request
//.........这里部分代码省略.........
// General
$_REQUEST['settings']['week_holidays'] = implode('|', $_REQUEST['settings']['week_holidays']);
CCalendar::SetSettings($_REQUEST['settings']);
CCalendarType::Edit(array('arFields' => array('XML_ID' => self::$type, 'ACCESS' => $_REQUEST['type_access'])));
}
}
CCalendar::OutputJSRes($reqId, array('result' => true));
break;
// * * * * * Confirm user part in event * * * * *
// * * * * * Confirm user part in event * * * * *
case 'set_meeting_status':
CCalendarEvent::SetMeetingStatus(self::$userId, intVal($_REQUEST['event_id']), in_array($_REQUEST['status'], array('Q', 'Y', 'N')) ? $_REQUEST['status'] : 'Q', $_REQUEST['status_comment']);
CCalendar::OutputJSRes($reqId, true);
break;
case 'set_meeting_params':
CCalendarEvent::SetMeetingParams(self::$userId, intVal($_REQUEST['event_id']), array('ACCESSIBILITY' => $_REQUEST['accessibility'], 'REMIND' => $_REQUEST['remind']));
CCalendar::OutputJSRes($reqId, true);
break;
// * * * * * Check users accessibility * * * * *
// * * * * * Check users accessibility * * * * *
case 'check_guests':
CCalendar::OutputJSRes($reqId, array('data' => CCalendar::CheckUsersAccessibility(array('users' => $_REQUEST['attendees'], 'from' => self::Date($_POST['from']), 'to' => self::Date($_POST['to']), 'eventId' => intVal($_POST['event_id'])))));
break;
// * * * * * Get list of group members * * * * *
// * * * * * Get list of group members * * * * *
case 'get_group_members':
if (self::$type == 'group') {
CCalendar::OutputJSRes($reqId, array('users' => self::GetGroupMembers(self::$ownerId)));
}
break;
// * * * * * Get Guests Accessibility * * * * *
// * * * * * Get Guests Accessibility * * * * *
case 'get_accessibility':
$res = CCalendar::GetAccessibilityForUsers(array('users' => $_POST['users'], 'from' => self::Date(self::Timestamp($_POST['from'])), 'to' => self::Date(self::Timestamp($_POST['to'])), 'curEventId' => intVal($_POST['cur_event_id']), 'getFromHR' => true));
CCalendar::OutputJSRes($reqId, array('data' => $res));
break;
// * * * * * Get meeting room accessibility * * * * *
// * * * * * Get meeting room accessibility * * * * *
case 'get_mr_accessibility':
$res = CCalendar::GetAccessibilityForMeetingRoom(array('id' => intVal($_POST['id']), 'from' => self::Date(self::Timestamp($_POST['from'])), 'to' => self::Date(self::Timestamp($_POST['to'])), 'curEventId' => intVal($_POST['cur_event_id'])));
CCalendar::OutputJSRes($reqId, array('data' => $res));
break;
// * * * * * Get meeting room accessibility * * * * *
// * * * * * Get meeting room accessibility * * * * *
case 'check_meeting_room':
$check = false;
if (self::$allowReserveMeeting || self::$allowVideoMeeting) {
$from = self::Date($_POST['from']);
$to = self::Date($_POST['to']);
$loc_old = $_POST['location_old'] ? CCalendar::ParseLocation(trim($_POST['location_old'])) : false;
$loc_new = CCalendar::ParseLocation(trim($_POST['location_new']));
$Params = array('dateFrom' => self::CutZeroTime($from), 'dateTo' => self::CutZeroTime($to), 'regularity' => 'NONE', 'members' => isset($_POST['guest']) ? $_POST['guest'] : false);
$tst = MakeTimeStamp($Params['dateTo']);
if (date("H:i", $tst) == '00:00') {
$Params['dateTo'] = CIBlockFormatProperties::DateFormat(self::DFormat(true), $tst + (23 * 60 + 59) * 60);
}
if (intVal($_POST['id']) > 0) {
$Params['ID'] = intVal($_POST['id']);
}
if (self::$allowVideoMeeting && $loc_new['mrid'] == self::$settings['vr_iblock_id']) {
$Params['VMiblockId'] = self::$settings['vr_iblock_id'];
if ($loc_old['mrevid'] > 0) {
$Params['ID'] = $loc_old['mrevid'];
}
$check = CCalendar::CheckVideoRoom($Params);
} elseif (self::$allowReserveMeeting) {
示例2: MeetingAccessibilityGet
public static function MeetingAccessibilityGet($arParams = array(), $nav = null, $server = null)
{
$userId = CCalendar::GetCurUserId();
$methodName = "calendar.accessibility.get";
$necessaryParams = array('from', 'to', 'users');
foreach ($necessaryParams as $param) {
if (!isset($arParams[$param]) || empty($arParams[$param])) {
throw new Exception(GetMessage('CAL_REST_PARAM_EXCEPTION', array('#PARAM_NAME#' => $param, '#REST_METHOD#' => $methodName)));
}
}
$from = CRestUtil::unConvertDate($arParams['from']);
$to = CRestUtil::unConvertDate($arParams['to']);
$res = CCalendar::GetAccessibilityForUsers(array('users' => $arParams['users'], 'from' => $from, 'to' => $to, 'getFromHR' => true));
return $res;
}