Commit c92ac3be authored by Manfred Kutas's avatar Manfred Kutas

ZP-900 Updated some missed function and variable names. Fixed typos.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 3c19e28d
...@@ -418,7 +418,6 @@ class BackendZarafa implements IBackend, ISearchProvider { ...@@ -418,7 +418,6 @@ class BackendZarafa implements IBackend, ISearchProvider {
return false; return false;
} }
// delayed logging to log to potentially log the parameters set for ZO-6
ZLog::Write(LOGLEVEL_DEBUG, sprintf("ZarafaBackend->SendMail(): RFC822: %d bytes forward-id: '%s' reply-id: '%s' parent-id: '%s' SaveInSent: '%s' ReplaceMIME: '%s'", ZLog::Write(LOGLEVEL_DEBUG, sprintf("ZarafaBackend->SendMail(): RFC822: %d bytes forward-id: '%s' reply-id: '%s' parent-id: '%s' SaveInSent: '%s' ReplaceMIME: '%s'",
strlen($sm->mime), Utils::PrintAsString($sm->forwardflag), Utils::PrintAsString($sm->replyflag), strlen($sm->mime), Utils::PrintAsString($sm->forwardflag), Utils::PrintAsString($sm->replyflag),
Utils::PrintAsString((isset($sm->source->folderid) ? $sm->source->folderid : false)), Utils::PrintAsString((isset($sm->source->folderid) ? $sm->source->folderid : false)),
......
...@@ -72,9 +72,9 @@ class ASDevice extends StateObject { ...@@ -72,9 +72,9 @@ class ASDevice extends StateObject {
'announcedASversion' => false, 'announcedASversion' => false,
'foldersynccomplete' => true, 'foldersynccomplete' => true,
'additionalfolders' => array(), 'additionalfolders' => array(),
'olpluginversion' => false, 'koeversion' => false,
'olpluginbuild' => false, 'koebuild' => false,
'olpluginbuilddate' => false, 'koebuilddate' => false,
'koegabbackendfolderid' => false, 'koegabbackendfolderid' => false,
); );
......
...@@ -157,9 +157,9 @@ class DeviceManager { ...@@ -157,9 +157,9 @@ class DeviceManager {
// update data from the OL plugin (if available) // update data from the OL plugin (if available)
if (Request::HasKoeStats()) { if (Request::HasKoeStats()) {
$this->device->SetOLPluginVersion(Request::GetKoeVersion()); $this->device->SetKoeVersion(Request::GetKoeVersion());
$this->device->SetOLPluginBuild(Request::GetKoeBuild()); $this->device->SetKoeBuild(Request::GetKoeBuild());
$this->device->SetOLPluginBuildDate(Request::GetKoeBuildDate()); $this->device->SetKoeBuildDate(Request::GetKoeBuildDate());
} }
// data to be saved // data to be saved
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
class SyncNote extends SyncObject { class SyncNote extends SyncObject {
// KOE transports note colors as categories // Outlook transports note colors as categories
static private $colors = array( static private $colors = array(
0 => "Blue Category", 0 => "Blue Category",
1 => "Green Category", 1 => "Green Category",
......
...@@ -49,11 +49,11 @@ define('AMOUNT_OF_CHUNKS', 10); ...@@ -49,11 +49,11 @@ define('AMOUNT_OF_CHUNKS', 10);
// SyncWorker implementation to be used // SyncWorker implementation to be used
define('SYNCWORKER', 'Kopano'); define('SYNCWORKER', 'Kopano');
// unique id to find a contact from the GAB (value to be supplied by -u on the command line) // Unique id to find a contact from the GAB (value to be supplied by -u on the command line)
// Zarafa supports: 'account' and 'smtpAddress' (email) // Zarafa supports: 'account' and 'smtpAddress' (email)
define('UNIQUEID', 'account'); define('UNIQUEID', 'account');
// server connection settings // Server connection settings
// Depending on your setup, it might be advisable to change the lines below to one defined with your // Depending on your setup, it might be advisable to change the lines below to one defined with your
// default socket location. // default socket location.
// Normally "default:" points to the default setting ("file:///var/run/kopano/server.sock") // Normally "default:" points to the default setting ("file:///var/run/kopano/server.sock")
......
...@@ -90,10 +90,10 @@ class GabSyncCLI { ...@@ -90,10 +90,10 @@ class GabSyncCLI {
static private $errormessage; static private $errormessage;
/** /**
* Returns usage instructions * Returns usage instructions.
* *
* @return string
* @access public * @access public
* @return string
*/ */
static public function UsageInstructions() { static public function UsageInstructions() {
return "Usage:" .PHP_EOL. return "Usage:" .PHP_EOL.
...@@ -112,6 +112,9 @@ class GabSyncCLI { ...@@ -112,6 +112,9 @@ class GabSyncCLI {
/** /**
* Setup of the SyncWorker implementation. * Setup of the SyncWorker implementation.
*
* @access public
* @return boolean
*/ */
static public function SetupSyncWorker() { static public function SetupSyncWorker() {
$file = "lib/" .strtolower(SYNCWORKER).".php"; $file = "lib/" .strtolower(SYNCWORKER).".php";
...@@ -136,10 +139,10 @@ class GabSyncCLI { ...@@ -136,10 +139,10 @@ class GabSyncCLI {
} }
/** /**
* Checks the environment * Checks the environment.
* *
* @return
* @access public * @access public
* @return void
*/ */
static public function CheckEnv() { static public function CheckEnv() {
if (php_sapi_name() != "cli") if (php_sapi_name() != "cli")
...@@ -150,10 +153,10 @@ class GabSyncCLI { ...@@ -150,10 +153,10 @@ class GabSyncCLI {
} }
/** /**
* Checks the options from the command line * Checks the options from the command line.
* *
* @return
* @access public * @access public
* @return void
*/ */
static public function CheckOptions() { static public function CheckOptions() {
if (self::$errormessage) if (self::$errormessage)
...@@ -213,30 +216,30 @@ class GabSyncCLI { ...@@ -213,30 +216,30 @@ class GabSyncCLI {
/** /**
* Indicates if the options from the command line * Indicates if the options from the command line
* could be processed correctly * could be processed correctly.
* *
* @return boolean
* @access public * @access public
* @return boolean
*/ */
static public function SureWhatToDo() { static public function SureWhatToDo() {
return isset(self::$command); return isset(self::$command);
} }
/** /**
* Returns a errormessage of things which could have gone wrong * Returns a errormessage of things which could have gone wrong.
* *
* @return string
* @access public * @access public
* @return string
*/ */
static public function GetErrorMessage() { static public function GetErrorMessage() {
return (isset(self::$errormessage))?self::$errormessage:""; return (isset(self::$errormessage))?self::$errormessage:"";
} }
/** /**
* Runs a command requested from an action of the command line * Runs a command requested from an action of the command line.
* *
* @return
* @access public * @access public
* @return void
*/ */
static public function RunCommand() { static public function RunCommand() {
echo PHP_EOL; echo PHP_EOL;
......
...@@ -140,7 +140,7 @@ class Kopano extends SyncWorker { ...@@ -140,7 +140,7 @@ class Kopano extends SyncWorker {
} }
/** /**
* Returns the internal identfier (folder-id) of the hidden folder. * Returns the internal identifier (folder-id) of the hidden folder.
* *
* @access protected * @access protected
* @return string|boolean on error * @return string|boolean on error
...@@ -447,6 +447,8 @@ class Kopano extends SyncWorker { ...@@ -447,6 +447,8 @@ class Kopano extends SyncWorker {
* *
* @param string $folderid * @param string $folderid
* @param string $chunkName * @param string $chunkName
*
* @access private
* @return array * @return array
*/ */
private function findChunk($folderid, $chunkName) { private function findChunk($folderid, $chunkName) {
...@@ -467,12 +469,12 @@ class Kopano extends SyncWorker { ...@@ -467,12 +469,12 @@ class Kopano extends SyncWorker {
} }
/** /**
* Open the store marked with PR_DEFAULT_STORE = TRUE * Open the store marked with PR_DEFAULT_STORE = TRUE.
* if $return_public is set, the public store is opened * If $return_public is set, the public store is opened.
* *
* @param string $user User which store should be opened * @param string $user User which store should be opened
* *
* @access public * @access private
* @return boolean * @return boolean
*/ */
private function openMessageStore($user) { private function openMessageStore($user) {
...@@ -556,7 +558,7 @@ class Kopano extends SyncWorker { ...@@ -556,7 +558,7 @@ class Kopano extends SyncWorker {
} }
/** /**
* Opens the a folder. * Opens a folder.
* *
* @param string $folderid * @param string $folderid
* @access private * @access private
......
...@@ -48,7 +48,7 @@ abstract class SyncWorker { ...@@ -48,7 +48,7 @@ abstract class SyncWorker {
private $hashFieldId; private $hashFieldId;
/** /**
* The constructer should do all required login actions. * The constructor should do all required login actions.
*/ */
public function __construct() { public function __construct() {
$this->chunkType = @constant("HASHFIELD") . "-" . @constant("AMOUNT_OF_CHUNKS"); $this->chunkType = @constant("HASHFIELD") . "-" . @constant("AMOUNT_OF_CHUNKS");
...@@ -57,6 +57,9 @@ abstract class SyncWorker { ...@@ -57,6 +57,9 @@ abstract class SyncWorker {
/** /**
* Simulates the synchronization, showing statistics but without touching any data. * Simulates the synchronization, showing statistics but without touching any data.
*
* @access public
* @return void
*/ */
public function Simulate() { public function Simulate() {
$this->Log("Simulating the synchronization. NO DATA IS GOING TO BE WRITTEN.".PHP_EOL); $this->Log("Simulating the synchronization. NO DATA IS GOING TO BE WRITTEN.".PHP_EOL);
...@@ -324,7 +327,8 @@ abstract class SyncWorker { ...@@ -324,7 +327,8 @@ abstract class SyncWorker {
/** /**
* Calculated the chunk-id of a value. * Calculated the chunk-id of a value.
* *
* @parem string $value * @param string $value
*
* @access protected * @access protected
* @return number * @return number
*/ */
...@@ -357,7 +361,7 @@ abstract class SyncWorker { ...@@ -357,7 +361,7 @@ abstract class SyncWorker {
protected abstract function DeleteHiddenFolder($folderid); protected abstract function DeleteHiddenFolder($folderid);
/** /**
* Returns the internal identfier (folder-id) of the hidden folder. * Returns the internal identifier (folder-id) of the hidden folder.
* *
* @access protected * @access protected
* @return string * @return string
......
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