From d394e9802617cc248f8f79d9b3ec100a06234e4c Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 31 Dec 2008 11:00:19 -0700 Subject: [PATCH] Add header phpdoc stuff; explicitly declare funcs public. --- framework/Imap_Client/lib/Horde/Imap/Client/Base.php | 6 +++--- framework/Imap_Client/lib/Horde/Imap/Client/Cache.php | 4 ++-- framework/Imap_Client/lib/Horde/Imap/Client/Cclient.php | 2 +- framework/Imap_Client/lib/Horde/Imap/Client/Exception.php | 2 +- framework/Imap_Client/lib/Horde/Imap/Client/Search/Query.php | 9 +++++++++ framework/Imap_Client/lib/Horde/Imap/Client/Socket.php | 2 +- framework/Imap_Client/lib/Horde/Imap/Client/Thread.php | 11 ++++++++++- 7 files changed, 27 insertions(+), 9 deletions(-) diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Base.php b/framework/Imap_Client/lib/Horde/Imap/Client/Base.php index 6f578f55c..07b7a0586 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Base.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Base.php @@ -123,7 +123,7 @@ abstract class Horde_Imap_Client_Base extends Horde_Imap_Client /** * Destructor. */ - function __destruct() + public function __destruct() { $this->_closeDebug(); } @@ -131,7 +131,7 @@ abstract class Horde_Imap_Client_Base extends Horde_Imap_Client /** * Do cleanup prior to serialization. */ - function __sleep() + public function __sleep() { $this->_closeDebug(); @@ -151,7 +151,7 @@ abstract class Horde_Imap_Client_Base extends Horde_Imap_Client /** * Do re-initialization on unserialize(). */ - function __wakeup() + public function __wakeup() { if (isset($this->_params['_passencrypt']) && !is_null(Horde_Imap_Client::$encryptKey)) { diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Cache.php b/framework/Imap_Client/lib/Horde/Imap/Client/Cache.php index 281e0c83d..f25d3bd03 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Cache.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Cache.php @@ -104,7 +104,7 @@ class Horde_Imap_Client_Cache * * @param array $params The configuration parameters. */ - function __construct($params = array()) + public function __construct($params = array()) { if (empty($params['driver']) || empty($params['driver_params']) || @@ -153,7 +153,7 @@ class Horde_Imap_Client_Cache /** * Saves items to the cache at shutdown. */ - function __destruct() + public function __destruct() { $compress = $this->_params['compress']; $lifetime = $this->_params['lifetime']; diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Cclient.php b/framework/Imap_Client/lib/Horde/Imap/Client/Cclient.php index 26bae5fea..84ae2e28b 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Cclient.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Cclient.php @@ -115,7 +115,7 @@ class Horde_Imap_Client_Cclient extends Horde_Imap_Client_Base * Do cleanup prior to serialization and provide a list of variables * to serialize. */ - function __sleep() + public function __sleep() { $this->logout(); parent::__sleep(); diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Exception.php b/framework/Imap_Client/lib/Horde/Imap/Client/Exception.php index 4d6b3cb1a..fbea4b849 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Exception.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Exception.php @@ -64,7 +64,7 @@ class Horde_Imap_Client_Exception extends Exception /** * Constructor. */ - function __construct($message = null, $code = 0) + public function __construct($message = null, $code = 0) { parent::__construct($message, $code); diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Search/Query.php b/framework/Imap_Client/lib/Horde/Imap/Client/Search/Query.php index 549097694..d62893f99 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Search/Query.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Search/Query.php @@ -4,6 +4,15 @@ * class allows translation between abstracted search criteria and a * generated IMAP search criteria string suitable for sending to a remote * IMAP server. + * + * Copyright 2008 The Horde Project (http://www.horde.org/) + * + * See the enclosed file COPYING for license information (GPL). If you + * did not receive this file, see http://www.fsf.org/copyleft/gpl.html. + * + * @author Michael Slusarz + * @category Horde + * @package Horde_Imap_Client */ class Horde_Imap_Client_Search_Query { diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php index e4bc3e375..8658e4e0c 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php @@ -103,7 +103,7 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base * Do cleanup prior to serialization and provide a list of variables * to serialize. */ - function __sleep() + public function __sleep() { $this->logout(); $this->_temp = array(); diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Thread.php b/framework/Imap_Client/lib/Horde/Imap/Client/Thread.php index f73acce2b..207193474 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Thread.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Thread.php @@ -2,6 +2,15 @@ /** * A class allowing easy access to threaded sort results from * Horde_Imap_Client::thread(). + * + * Copyright 2008 The Horde Project (http://www.horde.org/) + * + * See the enclosed file COPYING for license information (GPL). If you + * did not receive this file, see http://www.fsf.org/copyleft/gpl.html. + * + * @author Michael Slusarz + * @category Horde + * @package Horde_Imap_Client */ class Horde_Imap_Client_Thread { @@ -26,7 +35,7 @@ class Horde_Imap_Client_Thread * Horde_Imap_Client_Base::_thread(). * @param string $type Either 'uid' or 'sequence'. */ - function __construct($data, $type) + public function __construct($data, $type) { $this->_thread = $data; $this->_type = $type; -- 2.11.0