From: Michael J. Rubinsky Date: Thu, 3 Jun 2010 15:52:43 +0000 (-0400) Subject: fix camelcase of method names X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fc0ca8d332b41545fdf26ed418d225b11697a516;p=horde.git fix camelcase of method names --- diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Connector/Importer.php b/framework/ActiveSync/lib/Horde/ActiveSync/Connector/Importer.php index 761ee8025..5a42a7355 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Connector/Importer.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Connector/Importer.php @@ -196,7 +196,7 @@ class Horde_ActiveSync_Connector_Importer $this->_state->updateState('flags', $change, Horde_ActiveSync::CHANGE_ORIGIN_NA); /* Tell backend */ - $this->_backend->SetReadFlag($this->_folderId, $id, $flags); + $this->_backend->setReadFlag($this->_folderId, $id, $flags); return true; } @@ -270,7 +270,7 @@ class Horde_ActiveSync_Connector_Importer $change['id'] = $id; $this->_state->updateState('delete', $change, Horde_ActiveSync::CHANGE_ORIGIN_NA); - $this->_backend->DeleteFolder($parent, $id); + $this->_backend->deleteFolder($parent, $id); return true; } diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Driver/Base.php b/framework/ActiveSync/lib/Horde/ActiveSync/Driver/Base.php index 9d4086597..46fff2887 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Driver/Base.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Driver/Base.php @@ -325,7 +325,7 @@ abstract class Horde_ActiveSync_Driver_Base * * @return Horde_ActiveSync_DiffState_ImportHierarchy */ - public function GetHierarchyImporter() + public function getHierarchyImporter() { $importer = new Horde_ActiveSync_DiffState_ImportHierarchy($this); $importer->setLogger($this->_logger); @@ -340,7 +340,7 @@ abstract class Horde_ActiveSync_Driver_Base * * @return Horde_ActiveSync_DiffState_ImportContents */ - public function GetContentsImporter($folderId) + public function getContentsImporter($folderId) { $importer = new Horde_ActiveSync_DiffState_ImportContents($this, $folderId); $importer->setLogger($this->_logger); @@ -391,7 +391,7 @@ abstract class Horde_ActiveSync_Driver_Base * * @return array */ - public function GetHierarchy() + public function getHierarchy() { $folders = array(); @@ -412,7 +412,7 @@ abstract class Horde_ActiveSync_Driver_Base * * @return Horde_ActiveSync_Message_Base The message data */ - public function Fetch($folderid, $id, $mimesupport = 0) + public function fetch($folderid, $id, $mimesupport = 0) { // Forces entire message (up to 1Mb) return $this->getMessage($folderid, $id, 1024 * 1024, $mimesupport); @@ -423,7 +423,7 @@ abstract class Horde_ActiveSync_Driver_Base * @param $attname * @return unknown_type */ - public function GetAttachmentData($attname) + public function getAttachmentData($attname) { return false; } @@ -457,7 +457,7 @@ abstract class Horde_ActiveSync_Driver_Base * @return boolean * @throws Horde_ActiveSync_Exception */ - public function DeleteFolder($parent, $id) + public function deleteFolder($parent, $id) { throw new Horde_ActiveSync_Exception('DeleteFolder not yet implemented'); } @@ -469,7 +469,7 @@ abstract class Horde_ActiveSync_Driver_Base * @param $flags * @return unknown_type */ - function SetReadFlag($folderid, $id, $flags) + function setReadFlag($folderid, $id, $flags) { return false; } @@ -497,7 +497,7 @@ abstract class Horde_ActiveSync_Driver_Base * @param $newfolderid * @return unknown_type */ - public function MoveMessage($folderid, $id, $newfolderid) + public function moveMessage($folderid, $id, $newfolderid) { throw new Horde_ActiveSync_Exception('moveMessage not yet implemented.'); } @@ -511,7 +511,7 @@ abstract class Horde_ActiveSync_Driver_Base * @param $calendarid * @return unknown_type */ - public function MeetingResponse($requestid, $folderid, $error, &$calendarid) + public function meetingResponse($requestid, $folderid, $error, &$calendarid) { throw new Horde_ActiveSync_Exception('meetingResponse not yet implemented.'); } @@ -530,15 +530,28 @@ abstract class Horde_ActiveSync_Driver_Base } /** + * Specifies if this driver has an alternate way of checking for changes + * when PING is used. * - * @return unknown_type + * @return boolean */ - public function AlterPing() + public function alterPing() { return false; } - public function AlterPingChanges($folderid, &$syncstate) + /** + * If this driver can check for changes in an alternate way for PING then + * for SYNC, this method is used to do so. Also, alterPing() should return + * true in this case. + * + * @param string $folderid The folder id + * @param array $syncstate The syncstate + * + * @deprecated - This will probably be removed. + * @return array An array of changes, the same as retunred from getChanges + */ + public function alterPingChanges($folderid, &$syncstate) { return array(); } diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Request/FolderCreate.php b/framework/ActiveSync/lib/Horde/ActiveSync/Request/FolderCreate.php index 39baa6476..3926a8789 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Request/FolderCreate.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Request/FolderCreate.php @@ -108,7 +108,7 @@ class Horde_ActiveSync_Request_FolderCreate extends Horde_ActiveSync_Request_Bas $seenfolders = array(); } // Configure importer with last state - $importer = $this->_driver->GetHierarchyImporter(); + $importer = $this->_driver->getHierarchyImporter(); $importer->Config($syncstate); if (!$delete) { diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Request/GetHierarchy.php b/framework/ActiveSync/lib/Horde/ActiveSync/Request/GetHierarchy.php index 25139fb3d..979f8d61f 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Request/GetHierarchy.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Request/GetHierarchy.php @@ -23,7 +23,7 @@ class Horde_ActiveSync_Request_GetHierarchy extends Horde_ActiveSync_Request_Bas */ public function handle() { - $folders = $this->_driver->GetHierarchy(); + $folders = $this->_driver->getHierarchy(); if (!$folders) { return false; } diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Request/MeetingResponse.php b/framework/ActiveSync/lib/Horde/ActiveSync/Request/MeetingResponse.php index 4ac6b5f38..74a48d8d9 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Request/MeetingResponse.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Request/MeetingResponse.php @@ -81,7 +81,7 @@ class Horde_ActiveSync_Request_MeetingResponse extends Horde_ActiveSync_Request_ foreach ($requests as $req) { $calendarid = ''; - $ok = $this->_driver->MeetingResponse($req['requestid'], $req['folderid'], $req['response'], $calendarid); + $ok = $this->_driver->meetingResponse($req['requestid'], $req['folderid'], $req['response'], $calendarid); $this->_encoder->startTag(SYNC_MEETINGRESPONSE_RESULT); $this->_encoder->startTag(SYNC_MEETINGRESPONSE_REQUESTID); $this->_encoder->content($req['requestid']); diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Request/MoveItems.php b/framework/ActiveSync/lib/Horde/ActiveSync/Request/MoveItems.php index bfb29eb70..65dd2e3cb 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Request/MoveItems.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Request/MoveItems.php @@ -76,7 +76,7 @@ class Horde_ActiveSync_Request_MoveItems extends Horde_ActiveSync_Request_Base $this->_encoder->content($move['srcmsgid']); $this->_encoder->endTag(); - $importer = $this->_driver->GetContentsImporter($move['srcfldid']); + $importer = $this->_driver->getContentsImporter($move['srcfldid']); $result = $importer->importMessageMove($move['srcmsgid'], $move['dstfldid']); // We discard the importer state for now. diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Request/Sync.php b/framework/ActiveSync/lib/Horde/ActiveSync/Request/Sync.php index fe856fb58..9323a1e93 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Request/Sync.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Request/Sync.php @@ -432,7 +432,7 @@ class Horde_ActiveSync_Request_Sync extends Horde_ActiveSync_Request_Base /* Output any FETCH requests */ foreach ($collection['fetchids'] as $id) { - $data = $this->_driver->Fetch($collection['id'], $id, $mimesupport); + $data = $this->_driver->fetch($collection['id'], $id, $mimesupport); if ($data !== false) { $this->_encoder->startTag(Horde_ActiveSync::SYNC_FETCH); $this->_encoder->startTag(Horde_ActiveSync::SYNC_SERVERENTRYID); diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/State/File.php b/framework/ActiveSync/lib/Horde/ActiveSync/State/File.php index 98c6c0827..31360cb04 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/State/File.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/State/File.php @@ -550,10 +550,9 @@ class Horde_ActiveSync_State_File extends Horde_ActiveSync_State_Base /* do nothing if it is a dummy folder */ if ($folderId != Horde_ActiveSync::FOLDER_TYPE_DUMMY) { // on ping: check if backend supports alternative PING mechanism & use it - if ($this->_collection['class'] === false && $flags == Horde_ActiveSync::BACKEND_DISCARD_DATA && $this->_backend->AlterPing()) { + if ($this->_collection['class'] === false && $flags == Horde_ActiveSync::BACKEND_DISCARD_DATA && $this->_backend->alterPing()) { //@TODO - look at the passing of syncstate here - should probably pass self?? - // Not even sure if we need this AlterPing? - $this->_changes = $this->_backend->AlterPingChanges($folderId, $syncState); + $this->_changes = $this->_backend->alterPingChanges($folderId, $syncState); } else { /* Get our lists - syncstate (old) and msglist (new) */ $msglist = $this->_backend->getMessageList($this->_collection['id'], $cutoffdate);