예제 #1
0
 public function __construct()
 {
     $date = Date::Now()->ToIso();
     $this->id = 1;
     $this->dateCreated = $date;
     $this->emailAddress = '*****@*****.**';
     $this->firstName = 'first';
     $this->lastName = 'last';
     $this->language = 'language_code';
     $this->lastLogin = $date;
     $this->organization = 'organization';
     $this->phoneNumber = 'phone';
     $this->statusId = 'statusId';
     $this->timezone = 'timezone';
     $this->username = '******';
     $this->position = 'position';
     $this->customAttributes = array(CustomAttributeResponse::Example());
 }
예제 #2
0
 public function __construct()
 {
     $interval = new TimeInterval(120);
     $length = $interval->__toString();
     $this->resourceId = 123;
     $this->name = 'resource name';
     $this->location = 'location';
     $this->contact = 'contact';
     $this->notes = 'notes';
     $this->maxLength = $length;
     $this->minLength = $length;
     $this->maxNotice = $length;
     $this->minNotice = $length;
     $this->requiresApproval = true;
     $this->allowMultiday = true;
     $this->maxParticipants = 10;
     $this->description = 'resource description';
     $this->scheduleId = 123;
     $this->statusId = ResourceStatus::AVAILABLE;
     $this->statusReasonId = 3;
     $this->customAttributes = array(CustomAttributeResponse::Example());
 }
예제 #3
0
 public function __construct()
 {
     $this->accessories = array(ReservationAccessoryResponse::Example());
     $this->attachments = array(AttachmentResponse::Example());
     $this->customAttributes = array(CustomAttributeResponse::Example());
     $this->description = 'reservation description';
     $this->endDateTime = Date::Now()->ToIso();
     $this->invitees = array(ReservationUserResponse::Example());
     $this->isRecurring = true;
     $this->owner = ReservationUserResponse::Example();
     $this->participants = array(ReservationUserResponse::Example());
     $this->recurrenceRule = RecurrenceRequestResponse::Example();
     $this->referenceNumber = 'refnum';
     $this->requiresApproval = true;
     $this->resourceId = 123;
     $this->resources = array(ResourceItemResponse::Example());
     $this->scheduleId = 123;
     $this->startDateTime = Date::Now()->ToIso();
     $this->title = 'reservation title';
     $this->startReminder = ReminderRequestResponse::Example();
     $this->endReminder = ReminderRequestResponse::Example();
     $this->allowParticipation = true;
 }
예제 #4
0
 public function __construct()
 {
     $date = Date::Now()->ToIso();
     $this->id = 1;
     $this->emailAddress = '*****@*****.**';
     $this->firstName = 'first';
     $this->lastName = 'last';
     $this->language = 'language_code';
     $this->lastLogin = $date;
     $this->organization = 'organization';
     $this->phoneNumber = 'phone';
     $this->statusId = 'statusId';
     $this->timezone = 'timezone';
     $this->username = '******';
     $this->position = 'position';
     $this->icsUrl = 'webcal://url/to/calendar';
     $this->customAttributes = array(CustomAttributeResponse::Example());
     $this->permissions = array(ResourceItemResponse::Example());
     $this->groups = array(GroupItemResponse::Example());
 }