Author: p_herbert
New Revision: 33175
URL: http://www.egroupware.org/viewvc/egroupware?rev=33175&view=rev
Log:
add folder ping function
Modified:
trunk/activesync/backend/egw.php
Modified: trunk/activesync/backend/egw.php
URL: http://www.egroupware.org/viewvc/egroupware/trunk/activesync/backend/egw.php?rev=33175&r1=33174&r2=33175&view=diff
— trunk/activesync/backend/egw.php (original)
+++ trunk/activesync/backend/egw.php Fri Nov 26 21:32:37 2010
@@ -85,6 +85,12 @@
return $folderlist;
}
- function AlterPing()
- {
-
debugLog (__METHOD__); -
return true; - }
- /**
- Get Information about a folder
@@ -128,13 +134,18 @@
function GetMessage($folderid, $id, $truncsize, $bodypreference=false, $mimesupport = 0)
{
-
return $this->run_on_plugin_by_id(__FUNCTION__, $folderid, $id, $truncsize, $bodypreference=false, $mimesupport = 0);
-
return $this->run_on_plugin_by_id(__FUNCTION__, $folderid, $id, $truncsize, $bodypreference, $mimesupport);}
function StatMessage($folderid, $id)
{
return $this->run_on_plugin_by_id(FUNCTION, $folderid, $id); -
}
-
function AlterPingChanges($folderid, &$syncstate)
-
{
-
return $this->run_ping_on_plugin_by_id(__FUNCTION__, $folderid, $syncstate);}
@@ -365,7 +376,25 @@
//error_log(METHOD."(’$method’,’$id’) type=$type, folder=$folder returning ".array2string($ret));
return $ret;
}
- private function run_ping_on_plugin_by_id($method,$id, &$syncstate)
- {
-
$this->setup_plugins(); -
$this->splitID($id, $type, $folder); -
if (is_numeric($type)) $type = 'felamimail'; -
$ret = false; -
if (isset($this->plugins[$type]) && method_exists($this->plugins[$type], $method)) -
{ -
$ret = call_user_func_array(array($this->plugins[$type], $method), array($id,&$syncstate)); -
} -
//error_log(__METHOD__."('$method','$id') type=$type, folder=$folder returning ".array2string($ret)); -
return $ret; - }
- /**
- Run a certain method on all plugins
@@ -438,6 +467,14 @@
*/
public function GetFolderList();
-
/**
-
- Ping a folder for changes.
-
-
- @param string $id
-
- @param string &$synckey
-
- @return array with faked chages | boolean false on error
-
*/
-
public function AlterPingChanges($id, &$synckey);
/**
- Get Information about a folder
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel® Graphics Technology. Get started today with the
Intel® Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs