Example #1
0
 public function updateContactItem(Type\ItemIdType $itemId, $changes)
 {
     //Create the request
     $request = array('ItemChange' => array('ItemId' => $itemId->toArray(), 'Updates' => API\ItemUpdateBuilder::buildUpdateItemChanges('Contact', 'contacts', $changes)));
     $options = array();
     $items = $this->updateItems($request, $options);
     if (!is_array($items)) {
         $items = array($items);
     }
     return $items;
 }
Example #2
0
 /**
  * Updates a calendar item with changes
  *
  * @param $itemId Type\ItemIdType
  * @param array $changes
  * @return Type\CalendarItemType[]
  */
 public function updateCalendarItem(Type\ItemIdType $itemId, $changes)
 {
     //Create the request
     $request = array('ItemChange' => array('ItemId' => $itemId->toArray(), 'Updates' => API\ItemUpdateBuilder::buildUpdateItemChanges('CalendarItem', 'calendar', $changes)));
     $options = array('SendMeetingInvitationsOrCancellations' => 'SendToNone');
     $items = $this->updateItems($request, $options)->getCalendarItem();
     if (!is_array($items)) {
         $items = array($items);
     }
     return $items;
 }
Example #3
0
 /**
  * Updates a calendar item with changes
  *
  * @param $itemId Type\ItemIdType|Type
  * @param $changes
  * @return Type\MessageType[]
  */
 public function updateMailItem($itemId, $changes)
 {
     //Create the request
     $request = array('ItemChange' => array('ItemId' => $itemId->toArray(), 'Updates' => API\ItemUpdateBuilder::buildUpdateItemChanges('Message', 'message', $changes)));
     $items = $this->updateItems($request);
     if (!is_array($items)) {
         $items = array($items);
     }
     return $items;
 }