Overview

Packages

  • Auth
  • Core
  • Horde
    • Imsp
  • None
  • Notification

Classes

  • Horde
  • Horde_Config
  • Horde_Config_Form
  • Horde_Core_ActiveSync_Connector
  • Horde_Core_ActiveSync_Driver
  • Horde_Core_Ajax_Application
  • Horde_Core_Ajax_Imple
  • Horde_Core_Ajax_Imple_AutoCompleter
  • Horde_Core_Ajax_Imple_Geocoder_Geonames
  • Horde_Core_Ajax_Imple_SpellChecker
  • Horde_Core_Alarm_Handler_Notify
  • Horde_Core_Auth_Application
  • Horde_Core_Auth_Composite
  • Horde_Core_Auth_Ldap
  • Horde_Core_Auth_Msad
  • Horde_Core_Auth_Shibboleth
  • Horde_Core_Auth_Signup_Base
  • Horde_Core_Auth_Signup_Form
  • Horde_Core_Auth_Signup_Null
  • Horde_Core_Auth_Signup_Sql
  • Horde_Core_Auth_Signup_SqlObject
  • Horde_Core_Autoloader_Callback_Mime
  • Horde_Core_Autoloader_Callback_Nls
  • Horde_Core_Block
  • Horde_Core_Block_Collection
  • Horde_Core_Block_Layout
  • Horde_Core_Block_Layout_Manager
  • Horde_Core_Block_Layout_View
  • Horde_Core_Block_Upgrade
  • Horde_Core_Browser
  • Horde_Core_Bundle
  • Horde_Core_Cli
  • Horde_Core_Controller_NotFound
  • Horde_Core_Controller_RequestConfiguration
  • Horde_Core_Controller_RequestMapper
  • Horde_Core_Controller_SettingsFinder
  • Horde_Core_Db_Migration
  • Horde_Core_Factory_ActiveSyncBackend
  • Horde_Core_Factory_ActiveSyncServer
  • Horde_Core_Factory_ActiveSyncState
  • Horde_Core_Factory_Ajax
  • Horde_Core_Factory_Alarm
  • Horde_Core_Factory_Auth
  • Horde_Core_Factory_AuthSignup
  • Horde_Core_Factory_Base
  • Horde_Core_Factory_BlockCollection
  • Horde_Core_Factory_Browser
  • Horde_Core_Factory_Cache
  • Horde_Core_Factory_Crypt
  • Horde_Core_Factory_Data
  • Horde_Core_Factory_Db
  • Horde_Core_Factory_DbBase
  • Horde_Core_Factory_DbPear
  • Horde_Core_Factory_Dns
  • Horde_Core_Factory_Editor
  • Horde_Core_Factory_Facebook
  • Horde_Core_Factory_Group
  • Horde_Core_Factory_History
  • Horde_Core_Factory_HttpClient
  • Horde_Core_Factory_Identity
  • Horde_Core_Factory_Image
  • Horde_Core_Factory_Imple
  • Horde_Core_Factory_Imsp
  • Horde_Core_Factory_ImspAuth
  • Horde_Core_Factory_Injector
  • Horde_Core_Factory_KolabServer
  • Horde_Core_Factory_KolabSession
  • Horde_Core_Factory_KolabStorage
  • Horde_Core_Factory_Ldap
  • Horde_Core_Factory_Lock
  • Horde_Core_Factory_Logger
  • Horde_Core_Factory_LoginTasks
  • Horde_Core_Factory_Mail
  • Horde_Core_Factory_Mapper
  • Horde_Core_Factory_Matcher
  • Horde_Core_Factory_Memcache
  • Horde_Core_Factory_MimeViewer
  • Horde_Core_Factory_Notification
  • Horde_Core_Factory_Perms
  • Horde_Core_Factory_PermsCore
  • Horde_Core_Factory_Prefs
  • Horde_Core_Factory_Request
  • Horde_Core_Factory_Secret
  • Horde_Core_Factory_SessionHandler
  • Horde_Core_Factory_Share
  • Horde_Core_Factory_ShareBase
  • Horde_Core_Factory_Template
  • Horde_Core_Factory_TextFilter
  • Horde_Core_Factory_ThemesCache
  • Horde_Core_Factory_Token
  • Horde_Core_Factory_Tree
  • Horde_Core_Factory_Twitter
  • Horde_Core_Factory_UrlShortener
  • Horde_Core_Factory_Vfs
  • Horde_Core_Factory_View
  • Horde_Core_Factory_Weather
  • Horde_Core_Group_Ldap
  • Horde_Core_Log_Logger
  • Horde_Core_LoginTasks
  • Horde_Core_LoginTasks_Backend_Horde
  • Horde_Core_LoginTasks_SystemTask_Upgrade
  • Horde_Core_Mime_Viewer_Syntaxhighlighter
  • Horde_Core_Mime_Viewer_Vcard
  • Horde_Core_Notification_Event_Status
  • Horde_Core_Notification_Handler_Decorator_Hordelog
  • Horde_Core_Notification_Storage_Session
  • Horde_Core_Perms
  • Horde_Core_Perms_Ui
  • Horde_Core_Prefs_Cache_Session
  • Horde_Core_Prefs_Identity
  • Horde_Core_Prefs_Storage_Configuration
  • Horde_Core_Prefs_Storage_Hooks
  • Horde_Core_Prefs_Storage_Upgrade
  • Horde_Core_Prefs_Ui
  • Horde_Core_Prefs_Ui_Widgets
  • Horde_Core_Share_Driver
  • Horde_Core_Share_FactoryCallback
  • Horde_Core_Sidebar
  • Horde_Core_Text_Filter_Bbcode
  • Horde_Core_Text_Filter_Emails
  • Horde_Core_Text_Filter_Emoticons
  • Horde_Core_Text_Filter_Highlightquotes
  • Horde_Core_Translation
  • Horde_Core_Tree_Html
  • Horde_Core_Tree_Javascript
  • Horde_Core_Tree_Simplehtml
  • Horde_Core_Ui_FlagImage
  • Horde_Core_Ui_JsCalendar
  • Horde_Core_Ui_Language
  • Horde_Core_Ui_Layout
  • Horde_Core_Ui_ModalFormRenderer
  • Horde_Core_Ui_Pager
  • Horde_Core_Ui_Tabs
  • Horde_Core_Ui_TagCloud
  • Horde_Core_Ui_VarRenderer
  • Horde_Core_Ui_VarRenderer_Html
  • Horde_Core_Ui_VarRenderer_TablesetHtml
  • Horde_Core_Ui_Widget
  • Horde_ErrorHandler
  • Horde_Help
  • Horde_Menu
  • Horde_Registry
  • Horde_Registry_Api
  • Horde_Registry_Application
  • Horde_Registry_Caller
  • Horde_Registry_Nlsconfig
  • Horde_Script_Files
  • Horde_Session
  • Horde_Session_Null
  • Horde_Themes
  • Horde_Themes_Cache
  • Horde_Themes_Css
  • Horde_Themes_Element
  • Horde_Themes_Image
  • Horde_Themes_Sound

Exceptions

  • Horde_Exception_HookNotSet
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Core_ActiveSync_Connector

Registry connector for Horde backend. Provides the communication between the Horde Registry on the local machine and the ActiveSync Horde driver.

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Copyright 2010-2012 Horde LLC (http://www.horde.org/)

Package: Core
Author: Michael J. Rubinsky mrubinsk@horde.org
Located at Horde/Core/ActiveSync/Connector.php
Methods summary
public Horde_ActiveSync_Driver_Horde_Connector_Registry
# __construct( array $params = array() )

Const'r

Const'r

Parameters

$params
Configuration parameters. Requires: <span class="php-quote">'registry'</span> - An instance of Horde_Registry

Returns

Horde_ActiveSync_Driver_Horde_Connector_Registry
public array
# calendar_listUids( integer $startstamp, integer $endstamp )

Get a list of events from horde's calendar api

Get a list of events from horde's calendar api

Parameters

$startstamp
The start of time period.
$endstamp
The end of time period

Returns

array
public array
# calendar_listBy( string $action, integer $from_ts, integer $to_ts )

Get a list of event uids that have had $action happen since $from_ts.

Get a list of event uids that have had $action happen since $from_ts.

Parameters

$action
The action to check for (add, modify, delete)
$from_ts
The timestamp to start checking from
$to_ts
The ending timestamp

Returns

array
An array of event uids
public Horde_ActiveSync_Message_Appointment
# calendar_export( string $uid )

Export the specified event as an ActiveSync message

Export the specified event as an ActiveSync message

Parameters

$uid
The calendar id

Returns

Horde_ActiveSync_Message_Appointment
public string
# calendar_import( Horde_ActiveSync_Message_Appointment $content )

Import an event into Horde's calendar store.

Import an event into Horde's calendar store.

Parameters

$content
The event content

Returns

string
The event's UID
public boolean
# calendar_replace( string $uid, Horde_ActiveSync_Message_Appointment $content )

Replace the event with new data

Replace the event with new data

Parameters

$uid
The UID of the event to replace
$content
The new event content

Returns

boolean
public boolean
# calendar_delete( string $uid )

Delete an event from Horde's calendar storage

Delete an event from Horde's calendar storage

Parameters

$uid
The UID of the event to delete

Returns

boolean
public integer
# calendar_getActionTimestamp( string $uid, string $action )

Return the timestamp for the last time $action was performed.

Return the timestamp for the last time $action was performed.

Parameters

$uid
The UID of the event we are interested in.
$action
The action we are interested in (add, modify...)

Returns

integer
public array
# contacts_listUids( )

Get a list of all contacts a user can see

Get a list of all contacts a user can see

Returns

array
of contact UIDs
public array
# contacts_export( string $uid )

Export the specified contact from Horde's contacts storage

Export the specified contact from Horde's contacts storage

Parameters

$uid
The contact's UID

Returns

array
The contact hash
public boolean
# contacts_import( string $content, string $import_source = null )

Import the provided contact data into Horde's contacts storage

Import the provided contact data into Horde's contacts storage

Parameters

$content
The contact data
$import_source
$source The contact source to import to

Returns

boolean
public boolean
# contacts_replace( string $uid, string $content, string $sources = null )

Replace the specified contact with the data provided.

Replace the specified contact with the data provided.

Parameters

$uid
The UID of the contact to replace
$content
The contact data
$sources
The sources where UID will be replaced

Returns

boolean
public bolean
# contacts_delete( string $uid )

Delete the specified contact

Delete the specified contact

Parameters

$uid
The UID of the contact to remove

Returns

bolean
public integer
# contacts_getActionTimestamp( string $uid, string $action )

Get the timestamp of the most recent occurance of $action for the specifed contact

Get the timestamp of the most recent occurance of $action for the specifed contact

Parameters

$uid
The UID of the contact to search
$action
The action to lookup

Returns

integer
public array
# contacts_listBy( string $action, integer $from_ts, integer $to_ts )

Get a list of contact uids that have had $action happen since $from_ts.

Get a list of contact uids that have had $action happen since $from_ts.

Parameters

$action
The action to check for (add, modify, delete)
$from_ts
The timestamp to start checking from
$to_ts
The ending timestamp

Returns

array
An array of event uids
public
# contacts_search( mixed $query )
public string
# contacts_getGal( )

Get the GAL source uid.

Get the GAL source uid.

Returns

string
| boolean
public array
# tasks_listUids( )

List all tasks in the user's default tasklist.

List all tasks in the user's default tasklist.

Returns

array
An array of task uids.
public
# tasks_listTaskLists( )
public Horde_ActiveSync_Message_Task
# tasks_export( string $uid )

Export a single task from the backend.

Export a single task from the backend.

Parameters

$uid
The task uid

Returns

Horde_ActiveSync_Message_Task
The task message object
public string
# tasks_import( Horde_ActiveSync_Message_Task $message )

Importa a single task into the backend.

Importa a single task into the backend.

Parameters

$message
The task message object

Returns

string
The newly added task's uid.
public boolean
# tasks_replace( string $uid, Horde_ActiveSync_Message_Task $message )

Replace an existing task with the provided task.

Replace an existing task with the provided task.

Parameters

$uid
The existing tasks's uid
$message
The task object

Returns

boolean
public boolean
# tasks_delete( string $id )

Delete a task from the backend.

Delete a task from the backend.

Parameters

$id
The task's uid

Returns

boolean
public integer
# tasks_getActionTimestamp( string $uid, string $action )

Return the timestamp for the last time $action was performed.

Return the timestamp for the last time $action was performed.

Parameters

$uid
The UID of the task we are interested in.
$action
The action we are interested in (add, modify...)

Returns

integer
public array
# tasks_listBy( string $action, integer $from_ts )

Get a list of task uids that have had $action happen since $from_ts.

Get a list of task uids that have had $action happen since $from_ts.

Parameters

$action
The action to check for (add, modify, delete)
$from_ts
The timestamp to start checking from

Returns

array
An array of event uids
public array
# horde_listApis( )

Return all active api interfaces.

Return all active api interfaces.

Returns

array
An array of interface names.
public mixed
# horde_getPref( string $app, string $pref )

Obtain a user's preference setting.

Obtain a user's preference setting.

Parameters

$app
The Horde application providing the setting.
$pref
The name of the preference setting.

Returns

mixed
The preference value
public string
# horde_hasInterface( string $api )

Obtain the name of the Horde application that provides the specified api interface.

Obtain the name of the Horde application that provides the specified api interface.

Parameters

$api
The interface name

Returns

string
The application name.
public array
# getChanges( string $collection, integer $from_ts, integer $to_ts )

Get all server changes for the specified collection

Get all server changes for the specified collection

Parameters

$collection
The collection type (calendar, contacts, tasks)
$from_ts
Starting timestamp
$to_ts
Ending timestamp

Returns

array
A hash of add, modify, and delete uids

Throws

InvalidArgumentException
public
# clearAuth( )

Clear the authentication and destroy the current session.

Clear the authentication and destroy the current session.

API documentation generated by ApiGen