[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/phpgwapi/inc/horde/Horde/SyncML/ -> State.php (sommaire)

(pas de description)

Poids: 937 lignes (27 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Horde_SyncML_State:: (60 méthodes):
  Horde_SyncML_State()
  getDataTree()
  getLocName()
  getSourceURI()
  getTargetURI()
  getVersion()
  getAddedItems()
  getChangedItems()
  getDeletedItems()
  getMoreDataPending()
  getMsgID()
  setWBXML()
  isWBXML()
  getSyncStatus()
  setAddedItems()
  setChangedItems()
  setClientDeviceInfo()
  setDeletedItems()
  setMoreDataPending()
  setMsgID()
  setLocName()
  setPassword()
  setSourceURI()
  setSyncStatus()
  setTargetURI()
  setVersion()
  setSessionID()
  isAuthorized()
  clearSync()
  setSync()
  getSync()
  getTargets()
  getURI()
  getURIMeta()
  getURIDevInf()
  getLocID()
  setUID()
  getGlobalUID()
  getChangeTS()
  removeUID()
  getPreferedContentType()
  getPreferedContentTypeClient()
  setClientAnchorNext()
  setServerAnchorLast()
  setServerAnchorNext()
  getClientAnchorNext()
  getServerAnchorNext()
  getServerAnchorLast()
  getSyncSummary()
  getClientDeviceInfo()
  writeClientDeviceInfo()
  writeSyncSummary()
  log()
  getLog()
  convertClient2Server()
  convertServer2Client()
  handleTasksInCalendar()
  dieOnError()
  getAlert222Received()
  setAlert222Received()


Classe: Horde_SyncML_State  - X-Ref

The Horde_SyncML_State class provides a SyncML state object.

$Horde: framework/SyncML/SyncML/State.php,v 1.15 2004/07/26 09:24:38 jan Exp $

Copyright 2003-2004 Anthony Mills <amills@pyramid6.com>

See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Horde_SyncML_State($sourceURI, $locName, $sessionID, $password = false)   X-Ref
Creates a new instance of Horde_SyncML_State.


getDataTree()   X-Ref
Returns the DataTree used as persistence layer for SyncML.  The
datatree var should not be a class member of State as State is
stored as a session var. Resource handles (=db connections)
cannot be stored in sessions.

return: object DataTree  The DataTree object.

getLocName()   X-Ref
Pas de description

getSourceURI()   X-Ref
Pas de description

getTargetURI()   X-Ref
Pas de description

getVersion()   X-Ref
Pas de description

getAddedItems($_type)   X-Ref
Pas de description

getChangedItems($_type)   X-Ref
Pas de description

getDeletedItems($_type)   X-Ref
Pas de description

getMoreDataPending()   X-Ref
Pas de description

getMsgID()   X-Ref
Pas de description

setWBXML($wbxml)   X-Ref
Pas de description

isWBXML()   X-Ref
Pas de description

getSyncStatus()   X-Ref
Pas de description

setAddedItems($_type, $_addedItems)   X-Ref
Pas de description

setChangedItems($_type, $_changedItems)   X-Ref
Pas de description

setClientDeviceInfo($clientDeviceInfo)   X-Ref
Pas de description

setDeletedItems($_type, $_deletedItems)   X-Ref
Pas de description

setMoreDataPending($_state)   X-Ref
Pas de description

setMsgID($msgID)   X-Ref
Setter for property msgID.

param: msgID New value of property msgID.

setLocName($locName)   X-Ref
Setter for property locName.

param: locName New value of property locName.

setPassword($password)   X-Ref
Setter for property locName.

param: locName New value of property locName.

setSourceURI($sourceURI)   X-Ref
Pas de description

setSyncStatus($_syncStatus)   X-Ref
Pas de description

setTargetURI($targetURI)   X-Ref
Pas de description

setVersion($version)   X-Ref
Pas de description

setSessionID($sessionID)   X-Ref
Pas de description

isAuthorized()   X-Ref
Pas de description

clearSync($target)   X-Ref
Pas de description

setSync($target, $sync)   X-Ref
Pas de description

getSync($target)   X-Ref
Pas de description

getTargets()   X-Ref
Pas de description

getURI()   X-Ref
Pas de description

getURIMeta()   X-Ref
Pas de description

getURIDevInf()   X-Ref
Pas de description

getLocID($type, $guid)   X-Ref
Converts a Horde GUID (like
kronolith:0d1b415fc124d3427722e95f0e926b75) to a client ID as
used by the sync client (like 12) returns false if no such id
is stored yet.

Remember that the datatree is really a tree disguised as a
table. So to look up the guid above, getId first looks for an
entry 'kronolith' and then for an entry
0d1b415fc124d3427722e95f0e926b75 with kronolith as parent.

setUID($type, $locid, $guid, $ts=0)   X-Ref
Puts a given client $locid and Horde server $guid pair into the
map table to allow mapping between the client's and server's
IDs.  Actually there are two maps: from the localid to the guid
and vice versa.  The localid is converted to a key as follows:
this->_locName . $this->_sourceURI . $type . $locid so you can
have different syncs with different devices.  If an entry
already exists, it is overwritten.


getGlobalUID($type, $locid)   X-Ref
Retrieves the Horde server guid (like
kronolith:0d1b415fc124d3427722e95f0e926b75) for a given client
locid. Returns false if no such id is stored yet.

Opposite of getLocId which returns the locid for a given guid.

getChangeTS($type, $guid)   X-Ref
Returns the timestamp (if set) of the last change to the
obj:guid, that was caused by the client. This is stored to
avoid mirroring these changes back to the client.


removeUID($type, $locid)   X-Ref
Removes the locid<->guid mapping for the given locid. Returns
the guid that was removed or false if no mapping entry was
found.


getPreferedContentType($type)   X-Ref
This function should use DevINF information.


getPreferedContentTypeClient($_sourceLocURI)   X-Ref
Returns the preferred contenttype of the client for the given
sync data type (database).

This is passed as an option to the Horde API export functions.

setClientAnchorNext($type, $a)   X-Ref
Pas de description

setServerAnchorLast($type, $a)   X-Ref
Pas de description

setServerAnchorNext($type, $a)   X-Ref
Pas de description

getClientAnchorNext($type)   X-Ref
Pas de description

getServerAnchorNext($type)   X-Ref
Pas de description

getServerAnchorLast($type)   X-Ref
Pas de description

getSyncSummary($type)   X-Ref
Retrieves information about the previous sync if any. Returns
false if no info found or a DateTreeObject with at least the
following attributes:

ClientAnchor: the clients Next Anchor of the previous sync.
ServerAnchor: the Server Next Anchor of the previous sync.

getClientDeviceInfo()   X-Ref
Retrieves information about the clients device info if any. Returns
false if no info found or a DateTreeObject with at least the
following attributes:

a array containing all available infos about the device

writeClientDeviceInfo()   X-Ref
write clients device info to database


writeSyncSummary()   X-Ref
After a successful sync, the client and server's Next Anchors
are written to the database so they can be used to negotiate
upcoming syncs.


log($topic)   X-Ref
The log simply counts the entries for each topic.


getLog()   X-Ref
The Log is an array where the key is the event name and the
value says how often this event occured.


convertClient2Server($content, $contentType)   X-Ref
Convert the content.

Currently strips uid (primary key) information as client and
server might use different ones.

Charset conversions might be added here too.

convertServer2Client($content, $contentType)   X-Ref
Convert the content.

Currently strips uid (primary key) information as client and
server might use different ones.

Charset conversions might be added here too.

handleTasksInCalendar()   X-Ref
When True, Task Item changes (NAG) are sent to the server
during "calendar" Syncs.  That's the way the P800/900 handles
things.  Should be retrieved from devinf?


dieOnError($obj, $file = __FILE__, $line = __LINE__)   X-Ref
This is a small helper function that can be included to check
whether a given $obj is a PEAR_Error or not. If so, it logs
to debug, var_dumps the $obj and exits.


getAlert222Received()   X-Ref
Pas de description

setAlert222Received($_status)   X-Ref
Pas de description



Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7