Commit 3d27b16c authored by Sebastian Kummer's avatar Sebastian Kummer

ZO-28 Cleanup.

parent 52d602e6
...@@ -267,6 +267,7 @@ abstract class Syncher { ...@@ -267,6 +267,7 @@ abstract class Syncher {
* Deletes the hidden folder. * Deletes the hidden folder.
* *
* @param string $folderid * @param string $folderid
*
* @access protected * @access protected
* @return boolean * @return boolean
*/ */
...@@ -284,6 +285,7 @@ abstract class Syncher { ...@@ -284,6 +285,7 @@ abstract class Syncher {
* Removes all messages that have not the same chunkType (chunk configuration changed!) * Removes all messages that have not the same chunkType (chunk configuration changed!)
* *
* @param string $folderid * @param string $folderid
*
* @access protected * @access protected
* @return boolean * @return boolean
*/ */
...@@ -293,6 +295,7 @@ abstract class Syncher { ...@@ -293,6 +295,7 @@ abstract class Syncher {
* Removes all messages that do not match the current ChunkType. * Removes all messages that do not match the current ChunkType.
* *
* @param string $folderid * @param string $folderid
*
* @access protected * @access protected
* @return boolean * @return boolean
*/ */
......
...@@ -50,6 +50,9 @@ class Zarafa extends Syncher { ...@@ -50,6 +50,9 @@ class Zarafa extends Syncher {
$this->mapiprops = getPropIdsFromStrings($this->store, $this->mapiprops); $this->mapiprops = getPropIdsFromStrings($this->store, $this->mapiprops);
} }
/************************************************************************************
* Implementing abstract methods from Syncher
*/
/** /**
* Creates the hidden folder. * Creates the hidden folder.
...@@ -83,6 +86,7 @@ class Zarafa extends Syncher { ...@@ -83,6 +86,7 @@ class Zarafa extends Syncher {
* Deletes the hidden folder. * Deletes the hidden folder.
* *
* @param string $folderid * @param string $folderid
*
* @access protected * @access protected
* @return boolean * @return boolean
*/ */
...@@ -127,20 +131,13 @@ class Zarafa extends Syncher { ...@@ -127,20 +131,13 @@ class Zarafa extends Syncher {
* Removes all messages that have not the same chunkType (chunk configuration changed!) * Removes all messages that have not the same chunkType (chunk configuration changed!)
* *
* @param string $folderid * @param string $folderid
*
* @access protected * @access protected
* @return boolean * @return boolean
*/ */
protected function ClearFolderContents($folderid) { protected function ClearFolderContents($folderid) {
$folderentryid = mapi_msgstore_entryidfromsourcekey($this->store, hex2bin($folderid)); $this->Log("Zarafa->ClearFolderContents: emptying folder");
if (!$folderentryid) $folder = $this->getFolder($folderid);
$this->Log("Zarafa->ClearFolderContents: Error, unable to open folder (no entry id)", true);
$folder = mapi_msgstore_openentry($this->store, $folderentryid);
if (!$folder)
$this->Log("Zarafa->ClearFolderContents: Error, unable to open parent folder (open entry)", true);
$this->Log("Zarafa->ClearFolderContents: emptying folder");
// empty folder! // empty folder!
$flags = 0; $flags = 0;
...@@ -155,6 +152,7 @@ class Zarafa extends Syncher { ...@@ -155,6 +152,7 @@ class Zarafa extends Syncher {
* Removes all messages that do not match the current ChunkType. * Removes all messages that do not match the current ChunkType.
* *
* @param string $folderid * @param string $folderid
*
* @access protected * @access protected
* @return boolean * @return boolean
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment