$endstamp = time() + 32140800; //60 * 60 * 24 * 31 * 12 == one year
try {
- $events = $this->_connector->calendar_listEvents($startstamp, $endstamp);
+ $events = $this->_connector->calendar_listUids($startstamp, $endstamp);
} catch (Horde_Exception $e) {
$this->_logger->err($e->getMessage());
return array();
}
- foreach ($events as $day) {
- foreach($day as $e) {
- $messages[] = $this->_smartStatMessage($folderid, $e->uid, false);
- }
+ foreach ($events as $uid) {
+ $messages[] = $this->_smartStatMessage($folderid, $uid, false);
}
break;
case self::CONTACTS_FOLDER:
try {
- $contacts = $this->_connector->contacts_list();
+ $contacts = $this->_connector->contacts_listUids();
} catch (Horde_Exception $e) {
$this->_logger->err($e->getMessage());
return array();
case self::TASKS_FOLDER:
try {
- $tasks = $this->_connector->tasks_listTasks();
+ $tasks = $this->_connector->tasks_listUids();
} catch (Horde_Exception $e) {
$this->_logger->err($e->getMessage());
return array();
$startstamp = (int)$cutoffdate;
$endstamp = time() + 32140800; //60 * 60 * 24 * 31 * 12 == one year
try {
- $events = $this->_connector->calendar_listEvents($startstamp, $endstamp);
+ $adds = $this->_connector->calendar_listUids($startstamp, $endstamp);
} catch (Horde_Exception $e) {
$this->_logger->err($e->getMessage());
return array();
}
- foreach ($events as $day) {
- foreach($day as $e) {
- $adds[] = $e->uid;
- }
- }
$edits = $deletes = array();
} else {
try {
/* Can't use History for first sync */
if ($from_ts == 0) {
try {
- $adds = $this->_connector->contacts_list();
+ $adds = $this->_connector->contacts_listUids();
} catch (Horde_Exception $e) {
$this->_logger->err($e->getMessage());
return array();
/* Can't use History for first sync */
if ($from_ts == 0) {
try {
- $adds = $this->_connector->tasks_listTasks();
+ $adds = $this->_connector->tasks_listUids();
} catch (Horde_Exception $e) {
$this->_logger->err($e->getMessage());
return array();
*
* @return array
*/
- public function calendar_listEvents($startstamp, $endstamp)
+ public function calendar_listUids($startstamp, $endstamp)
{
try {
- $result = $this->_registry->calendar->listEvents(
- $startstamp, // Start
- $endstamp, // End
- null, // Calendar
- false, // Recurrence
- false, // Alarms only
- false, // Show remote
- true, // Hide exception events
- false, // Don't return multi-day events on *each* day
- true); // Return Tags
+ return $this->_registry->calendar->listUids($startstamp, $endstamp);
} catch (Exception $e) {
return array();
}
- return $result;
}
/**
*
* @return array of contact UIDs
*/
- public function contacts_list()
+ public function contacts_listUids()
{
- return $this->_registry->contacts->listContacts();
+ return $this->_registry->contacts->listUids();
}
/**
*
* @return array An array of task uids.
*/
- public function tasks_listTasks()
+ public function tasks_listUids()
{
$app = $this->horde_hasInterface('tasks');
$tasklist = $this->horde_getPref($app, 'default_tasklist');
- return $this->_registry->tasks->listTaskUids($tasklist);
+ return $this->_registry->tasks->listUids($tasklist);
}
public function tasks_listTaskLists()