From b927e32fa14869bc3a48d1fba6b2a161b9606270 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Wed, 21 Jan 2015 09:21:46 +0100 Subject: Add namespaces: Exceptions, I18N, Security --- framework/I18N/core/ChoiceFormat.php | 5 +++-- framework/I18N/core/CultureInfo.php | 6 ++++-- framework/I18N/core/DateFormat.php | 6 ++++-- framework/I18N/core/DateTimeFormatInfo.php | 6 ++++-- framework/I18N/core/Gettext/TGettext.php | 6 ++++-- framework/I18N/core/Gettext/TGettext_MO.php | 5 +++-- framework/I18N/core/Gettext/TGettext_PO.php | 6 ++++-- framework/I18N/core/HTTPNegotiator.php | 6 ++++-- framework/I18N/core/IMessageSource.php | 6 ++++-- framework/I18N/core/MessageCache.php | 6 ++++-- framework/I18N/core/MessageFormat.php | 6 ++++-- framework/I18N/core/MessageSource.php | 5 +++-- framework/I18N/core/MessageSource_Database.php | 6 ++++-- framework/I18N/core/MessageSource_MySQL.php | 6 ++++-- framework/I18N/core/MessageSource_SQLite.php | 8 +++++--- framework/I18N/core/MessageSource_XLIFF.php | 6 ++++-- framework/I18N/core/MessageSource_gettext.php | 6 ++++-- framework/I18N/core/NumberFormat.php | 6 ++++-- framework/I18N/core/NumberFormatInfo.php | 6 ++++-- framework/I18N/core/TCache_Lite.php | 4 +++- framework/I18N/core/TMessageSourceIOException.php | 5 +++-- framework/I18N/core/util.php | 4 +++- 22 files changed, 83 insertions(+), 43 deletions(-) (limited to 'framework/I18N/core') diff --git a/framework/I18N/core/ChoiceFormat.php b/framework/I18N/core/ChoiceFormat.php index f5db61db..6b61bb17 100644 --- a/framework/I18N/core/ChoiceFormat.php +++ b/framework/I18N/core/ChoiceFormat.php @@ -14,9 +14,10 @@ * * @author Wei Zhuo * @version $Revision: 1.1 $ $Date: 2005/01/11 07:19:39 $ - * @package System.I18N.core + * @package Prado\I18N\core */ +namespace Prado\I18N\core; /** * ChoiceFormat class. @@ -74,7 +75,7 @@ * * @author Xiang Wei Zhuo * @version v1.0, last update on Fri Dec 24 20:46:16 EST 2004 - * @package System.I18N.core + * @package Prado\I18N\core */ class ChoiceFormat { diff --git a/framework/I18N/core/CultureInfo.php b/framework/I18N/core/CultureInfo.php index fc20b833..7283175a 100644 --- a/framework/I18N/core/CultureInfo.php +++ b/framework/I18N/core/CultureInfo.php @@ -13,9 +13,11 @@ * {@link http://prado.sourceforge.net/} * * @author Wei Zhuo - * @package System.I18N.core + * @package Prado\I18N\core */ +namespace Prado\I18N\core; + /** * CultureInfo class. * @@ -43,7 +45,7 @@ * For example, Australian English is "en_AU". * * @author Xiang Wei Zhuo - * @package System.I18N.core + * @package Prado\I18N\core */ class CultureInfo { diff --git a/framework/I18N/core/DateFormat.php b/framework/I18N/core/DateFormat.php index 6cfe1bfc..50bdf53c 100644 --- a/framework/I18N/core/DateFormat.php +++ b/framework/I18N/core/DateFormat.php @@ -13,9 +13,11 @@ * * @author Wei Zhuo * @version $Revision: 1.8 $ $Date: 2005/12/15 07:14:49 $ - * @package System.I18N.core + * @package Prado\I18N\core */ +namespace Prado\I18N\core; + /** * Get the DateTimeFormatInfo class. */ @@ -43,7 +45,7 @@ require_once(dirname(__FILE__).'/util.php'); * * @author Xiang Wei Zhuo * @version v1.0, last update on Sat Dec 04 14:10:49 EST 2004 - * @package System.I18N.core + * @package Prado\I18N\core */ class DateFormat { diff --git a/framework/I18N/core/DateTimeFormatInfo.php b/framework/I18N/core/DateTimeFormatInfo.php index d4deee1f..2f6e894f 100644 --- a/framework/I18N/core/DateTimeFormatInfo.php +++ b/framework/I18N/core/DateTimeFormatInfo.php @@ -14,9 +14,11 @@ * * @author Wei Zhuo * @version $Revision: 1.2 $ $Date: 2005/01/05 03:15:14 $ - * @package System.I18N.core + * @package Prado\I18N\core */ +namespace Prado\I18N\core; + /** * Get the CultureInfo class. */ @@ -73,7 +75,7 @@ require_once(dirname(__FILE__).'/CultureInfo.php'); * * @author Xiang Wei Zhuo * @version v1.0, last update on Fri Dec 03 22:30:31 EST 2004 - * @package System.I18N.core + * @package Prado\I18N\core */ class DateTimeFormatInfo { diff --git a/framework/I18N/core/Gettext/TGettext.php b/framework/I18N/core/Gettext/TGettext.php index 2c5f91c7..860a9208 100644 --- a/framework/I18N/core/Gettext/TGettext.php +++ b/framework/I18N/core/Gettext/TGettext.php @@ -13,9 +13,11 @@ * * @author Wei Zhuo * @version $Revision: 1.4 $ $Date: 2005/01/09 23:36:23 $ - * @package System.I18N.core + * @package Prado\I18N\core\Gettext */ +namespace Prado\I18N\core\Gettext; + // +----------------------------------------------------------------------+ // | PEAR :: File :: Gettext | // +----------------------------------------------------------------------+ @@ -54,7 +56,7 @@ * @author Michael Wallner * @version $Revision: 1.4 $ * @access public - * @package System.I18N.core + * @package Prado\I18N\core\Gettext */ class TGettext { diff --git a/framework/I18N/core/Gettext/TGettext_MO.php b/framework/I18N/core/Gettext/TGettext_MO.php index 3e84ef2e..d78b88e4 100644 --- a/framework/I18N/core/Gettext/TGettext_MO.php +++ b/framework/I18N/core/Gettext/TGettext_MO.php @@ -13,9 +13,10 @@ * * @author Wei Zhuo * @version $Revision: 1.3 $ $Date: 2005/08/27 03:21:12 $ - * @package System.I18N.core + * @package Prado\I18N\core\Gettext */ +namespace Prado\I18N\core\Gettext; // +----------------------------------------------------------------------+ // | PEAR :: File :: Gettext :: MO | @@ -48,7 +49,7 @@ require_once dirname(__FILE__).'/TGettext.php'; * @author Michael Wallner * @version $Revision: 1.3 $ * @access public - * @package System.I18N.core + * @package Prado\I18N\core\Gettext */ class TGettext_MO extends TGettext { diff --git a/framework/I18N/core/Gettext/TGettext_PO.php b/framework/I18N/core/Gettext/TGettext_PO.php index 950a5de3..9651da2e 100644 --- a/framework/I18N/core/Gettext/TGettext_PO.php +++ b/framework/I18N/core/Gettext/TGettext_PO.php @@ -13,9 +13,11 @@ * * @author Wei Zhuo * @version $Revision: 1.2 $ $Date: 2005/01/05 03:15:14 $ - * @package System.I18N.core + * @package Prado\I18N\core\Gettext */ +namespace Prado\I18N\core\Gettext; + // +----------------------------------------------------------------------+ // | PEAR :: File :: Gettext :: PO | // +----------------------------------------------------------------------+ @@ -47,7 +49,7 @@ require_once dirname(__FILE__).'/TGettext.php'; * @author Michael Wallner * @version $Revision: 1.2 $ * @access public - * @package System.I18N.core + * @package Prado\I18N\core\Gettext */ class TGettext_PO extends TGettext { diff --git a/framework/I18N/core/HTTPNegotiator.php b/framework/I18N/core/HTTPNegotiator.php index 26b532b8..9c96d568 100644 --- a/framework/I18N/core/HTTPNegotiator.php +++ b/framework/I18N/core/HTTPNegotiator.php @@ -14,9 +14,11 @@ * * @author Wei Zhuo * @version $Revision: 1.2 $ $Date: 2005/01/05 03:15:14 $ - * @package System.I18N.core + * @package Prado\I18N\core */ +namespace Prado\I18N\core; + /** * Include the CultureInfo class. */ @@ -29,7 +31,7 @@ require_once(dirname(__FILE__).'/CultureInfo.php'); * * @author Xiang Wei Zhuo * @version v1.0, last update on Fri Dec 24 16:01:35 EST 2004 - * @package System.I18N.core + * @package Prado\I18N\core */ class HTTPNegotiator { diff --git a/framework/I18N/core/IMessageSource.php b/framework/I18N/core/IMessageSource.php index f8263b97..32c56ebf 100644 --- a/framework/I18N/core/IMessageSource.php +++ b/framework/I18N/core/IMessageSource.php @@ -14,9 +14,11 @@ * * @author Wei Zhuo * @version $Revision: 1.3 $ $Date: 2005/01/09 22:15:32 $ - * @package System.I18N.core + * @package Prado\I18N\core */ +namespace Prado\I18N\core; + /** * IMessageSource interface. * @@ -27,7 +29,7 @@ * * @author Xiang Wei Zhuo * @version v1.0, last update on Fri Dec 24 17:40:19 EST 2004 - * @package System.I18N.core + * @package Prado\I18N\core */ interface IMessageSource { diff --git a/framework/I18N/core/MessageCache.php b/framework/I18N/core/MessageCache.php index ad310258..722f2aac 100644 --- a/framework/I18N/core/MessageCache.php +++ b/framework/I18N/core/MessageCache.php @@ -2,9 +2,11 @@ /** * Translation table cache. * @author $Author: weizhuo $ - * @package System.I18N.core + * @package Prado\I18N\core */ +namespace Prado\I18N\core; + /** * Load the cache lite library. */ @@ -13,7 +15,7 @@ require_once(dirname(__FILE__).'/TCache_Lite.php'); /** * Cache the translation table into the file system. * It can cache each cataloug+variant or just the whole section. - * @package System.I18N.core + * @package Prado\I18N\core * @author $Author: weizhuo $ */ class MessageCache diff --git a/framework/I18N/core/MessageFormat.php b/framework/I18N/core/MessageFormat.php index fd0d445d..64e53454 100644 --- a/framework/I18N/core/MessageFormat.php +++ b/framework/I18N/core/MessageFormat.php @@ -14,9 +14,11 @@ * * @author Wei Zhuo * @version $Revision: 1.5 $ $Date: 2005/08/27 03:21:12 $ - * @package System.I18N.core + * @package Prado\I18N\core */ +namespace Prado\I18N\core; + /** * Get the MessageSource classes. */ @@ -49,7 +51,7 @@ require_once(dirname(__FILE__).'/util.php'); * * @author Xiang Wei Zhuo * @version v1.0, last update on Fri Dec 24 20:46:16 EST 2004 - * @package System.I18N.core + * @package Prado\I18N\core */ class MessageFormat { diff --git a/framework/I18N/core/MessageSource.php b/framework/I18N/core/MessageSource.php index 50c13334..db24237a 100644 --- a/framework/I18N/core/MessageSource.php +++ b/framework/I18N/core/MessageSource.php @@ -13,9 +13,10 @@ * * @author Wei Zhuo * @version $Revision: 1.4 $ $Date: 2005/12/17 06:11:28 $ - * @package System.I18N.core + * @package Prado\I18N\core */ +namespace Prado\I18N\core; /** * Get the IMessageSource interface. @@ -68,7 +69,7 @@ require_once(dirname(__FILE__).'/MessageCache.php'); * * @author Xiang Wei Zhuo * @version v1.0, last update on Fri Dec 24 19:55:49 EST 2004 - * @package System.I18N.core + * @package Prado\I18N\core */ abstract class MessageSource implements IMessageSource { diff --git a/framework/I18N/core/MessageSource_Database.php b/framework/I18N/core/MessageSource_Database.php index 142c28db..d887954d 100644 --- a/framework/I18N/core/MessageSource_Database.php +++ b/framework/I18N/core/MessageSource_Database.php @@ -11,9 +11,11 @@ * The latest version of PRADO can be obtained from: * {@link http://prado.sourceforge.net/} * - * @package System.I18N.core + * @package Prado\I18N\core */ +namespace Prado\I18N\core; + /** * Get the MessageSource class file. */ @@ -26,7 +28,7 @@ require_once(dirname(__FILE__).'/MessageSource.php'); * * See the MessageSource::factory() method to instantiate this class. * - * @package System.I18N.core + * @package Prado\I18N\core */ class MessageSource_Database extends MessageSource { diff --git a/framework/I18N/core/MessageSource_MySQL.php b/framework/I18N/core/MessageSource_MySQL.php index 743694fa..52715ecd 100644 --- a/framework/I18N/core/MessageSource_MySQL.php +++ b/framework/I18N/core/MessageSource_MySQL.php @@ -14,9 +14,11 @@ * * @author Wei Zhuo * @version $Revision: 1.4 $ $Date: 2005/02/25 09:59:40 $ - * @package System.I18N.core + * @package Prado\I18N\core */ +namespace Prado\I18N\core; + /** * Get the MessageSource class file. */ @@ -36,7 +38,7 @@ require_once(dirname(__FILE__).'/util.php'); * * @author Xiang Wei Zhuo * @version v1.0, last update on Fri Dec 24 16:58:58 EST 2004 - * @package System.I18N.core + * @package Prado\I18N\core */ class MessageSource_MySQL extends MessageSource { diff --git a/framework/I18N/core/MessageSource_SQLite.php b/framework/I18N/core/MessageSource_SQLite.php index 46b5d865..78e4e78d 100644 --- a/framework/I18N/core/MessageSource_SQLite.php +++ b/framework/I18N/core/MessageSource_SQLite.php @@ -14,9 +14,11 @@ * * @author Wei Zhuo * @version $Revision: 1.4 $ $Date: 2005/02/25 09:59:40 $ - * @package System.I18N.core + * @package Prado\I18N\core */ - + +namespace Prado\I18N\core; + /** * Get the MessageSource class file. */ @@ -36,7 +38,7 @@ require_once(dirname(__FILE__).'/util.php'); * * @author Xiang Wei Zhuo * @version v1.0, last update on Fri Dec 24 16:58:58 EST 2004 - * @package System.I18N.core + * @package Prado\I18N\core */ class MessageSource_SQLite extends MessageSource { diff --git a/framework/I18N/core/MessageSource_XLIFF.php b/framework/I18N/core/MessageSource_XLIFF.php index 198a1290..3b3a8813 100644 --- a/framework/I18N/core/MessageSource_XLIFF.php +++ b/framework/I18N/core/MessageSource_XLIFF.php @@ -14,9 +14,11 @@ * * @author Wei Zhuo * @version $Revision: 1.8 $ $Date: 2005/12/17 06:11:28 $ - * @package System.I18N.core + * @package Prado\I18N\core */ +namespace Prado\I18N\core; + /** * Get the MessageSource class file. */ @@ -35,7 +37,7 @@ require_once(dirname(__FILE__).'/MessageSource.php'); * * @author Xiang Wei Zhuo * @version v1.0, last update on Fri Dec 24 16:18:44 EST 2004 - * @package System.I18N.core + * @package Prado\I18N\core */ class MessageSource_XLIFF extends MessageSource { diff --git a/framework/I18N/core/MessageSource_gettext.php b/framework/I18N/core/MessageSource_gettext.php index 4419c395..f5af9f0d 100644 --- a/framework/I18N/core/MessageSource_gettext.php +++ b/framework/I18N/core/MessageSource_gettext.php @@ -14,9 +14,11 @@ * * @author Wei Zhuo * @version $Revision: 1.7 $ $Date: 2005/12/17 06:11:28 $ - * @package System.I18N.core + * @package Prado\I18N\core */ +namespace Prado\I18N\core; + /** * Get the MessageSource class file. */ @@ -37,7 +39,7 @@ require_once(dirname(__FILE__).'/Gettext/TGettext.php'); * * @author Xiang Wei Zhuo * @version v1.0, last update on Fri Dec 24 16:18:44 EST 2004 - * @package System.I18N.core + * @package Prado\I18N\core */ class MessageSource_gettext extends MessageSource { diff --git a/framework/I18N/core/NumberFormat.php b/framework/I18N/core/NumberFormat.php index ded64782..4bd8c838 100644 --- a/framework/I18N/core/NumberFormat.php +++ b/framework/I18N/core/NumberFormat.php @@ -14,9 +14,11 @@ * * @author Wei Zhuo * @version $Revision: 1.6 $ $Date: 2005/12/20 09:32:42 $ - * @package System.I18N.core + * @package Prado\I18N\core */ +namespace Prado\I18N\core; + /** * Get the NumberFormatInfo class file. */ @@ -69,7 +71,7 @@ require_once(dirname(__FILE__).'/util.php'); * * @author Xiang Wei Zhuo * @version v1.0, last update on Fri Dec 10 18:10:20 EST 2004 - * @package System.I18N.core + * @package Prado\I18N\core */ class NumberFormat { diff --git a/framework/I18N/core/NumberFormatInfo.php b/framework/I18N/core/NumberFormatInfo.php index 2a666726..4b37e64d 100644 --- a/framework/I18N/core/NumberFormatInfo.php +++ b/framework/I18N/core/NumberFormatInfo.php @@ -14,9 +14,11 @@ * * @author Wei Zhuo * @version $Revision: 1.3 $ $Date: 2005/08/04 05:27:19 $ - * @package System.I18N.core + * @package Prado\I18N\core */ +namespace Prado\I18N\core; + /** * Get the CultureInfo class file. */ @@ -43,7 +45,7 @@ require_once(dirname(__FILE__).'/CultureInfo.php'); * * @author Xiang Wei Zhuo * @version v1.0, last update on Sun Dec 05 14:48:26 EST 2004 - * @package System.I18N.core + * @package Prado\I18N\core */ class NumberFormatInfo { diff --git a/framework/I18N/core/TCache_Lite.php b/framework/I18N/core/TCache_Lite.php index 69e1c308..fddba41b 100644 --- a/framework/I18N/core/TCache_Lite.php +++ b/framework/I18N/core/TCache_Lite.php @@ -14,9 +14,11 @@ * * @author Wei Zhuo * @version $Revision: 1.3 $ $Date: 2005/10/09 10:24:12 $ - * @package System.I18N.core + * @package Prado\I18N\core */ +namespace Prado\I18N\core; + /** * Fast, light and safe Cache Class * diff --git a/framework/I18N/core/TMessageSourceIOException.php b/framework/I18N/core/TMessageSourceIOException.php index 6eaaf939..dea7031e 100644 --- a/framework/I18N/core/TMessageSourceIOException.php +++ b/framework/I18N/core/TMessageSourceIOException.php @@ -13,9 +13,10 @@ * * @author Wei Zhuo * @version $Revision: 1.4 $ $Date: 2005/12/17 06:11:28 $ - * @package System.I18N.core + * @package Prado\I18N\core */ +namespace Prado\I18N\core; /** * TMessageSourceIOException thrown when unable to modify message source @@ -23,7 +24,7 @@ * * @author Wei Zhuo * @version $Revision: 1.4 $ $Date: 2005/12/17 06:11:28 ${DATE} ${TIME} $ - * @package System.I18N.core + * @package Prado\I18N\core */ class TMessageSourceIOException extends TException { diff --git a/framework/I18N/core/util.php b/framework/I18N/core/util.php index f84c4fb2..c5f15467 100644 --- a/framework/I18N/core/util.php +++ b/framework/I18N/core/util.php @@ -14,10 +14,12 @@ * * @author Wei Zhuo * @version $Revision: 1.3 $ $Date: 2005/08/27 03:21:12 $ - * @package System.I18N.core + * @package Prado\I18N\core */ +namespace Prado\I18N\core; + /** * For a given DSN (database connection string), return some information * about the DSN. This function comes from PEAR's DB package. -- cgit v1.2.3