From b46b4e7acb00715982a8d3543fb22f5ac64c88fe Mon Sep 17 00:00:00 2001 From: David Date: Sat, 11 Jul 2015 12:31:44 +0200 Subject: Added missing use statements in framework --- framework/I18N/core/ChoiceFormat.php | 1 + framework/I18N/core/CultureInfo.php | 1 + framework/I18N/core/DateFormat.php | 3 +++ framework/I18N/core/DateTimeFormatInfo.php | 2 ++ framework/I18N/core/Gettext/TGettext.php | 1 + framework/I18N/core/MessageCache.php | 2 ++ framework/I18N/core/MessageSource.php | 2 ++ framework/I18N/core/MessageSource_Database.php | 5 +++++ framework/I18N/core/MessageSource_MySQL.php | 2 ++ framework/I18N/core/MessageSource_XLIFF.php | 5 +++++ framework/I18N/core/MessageSource_gettext.php | 4 ++++ framework/I18N/core/NumberFormatInfo.php | 2 ++ framework/I18N/core/TCache_Lite.php | 1 + framework/I18N/core/TMessageSourceIOException.php | 1 + 14 files changed, 32 insertions(+) (limited to 'framework/I18N/core') diff --git a/framework/I18N/core/ChoiceFormat.php b/framework/I18N/core/ChoiceFormat.php index c42a2dda..61db3e54 100644 --- a/framework/I18N/core/ChoiceFormat.php +++ b/framework/I18N/core/ChoiceFormat.php @@ -17,6 +17,7 @@ */ namespace Prado\I18N\core; +use Exception; /** * ChoiceFormat class. diff --git a/framework/I18N/core/CultureInfo.php b/framework/I18N/core/CultureInfo.php index 7283175a..b931ec39 100644 --- a/framework/I18N/core/CultureInfo.php +++ b/framework/I18N/core/CultureInfo.php @@ -17,6 +17,7 @@ */ namespace Prado\I18N\core; +use Exception; /** * CultureInfo class. diff --git a/framework/I18N/core/DateFormat.php b/framework/I18N/core/DateFormat.php index 22e86de8..57f04468 100644 --- a/framework/I18N/core/DateFormat.php +++ b/framework/I18N/core/DateFormat.php @@ -20,6 +20,9 @@ namespace Prado\I18N\core; /** * Get the DateTimeFormatInfo class. */ +use Exception; +use Prado\Prado; + require_once(dirname(__FILE__).'/DateTimeFormatInfo.php'); /** diff --git a/framework/I18N/core/DateTimeFormatInfo.php b/framework/I18N/core/DateTimeFormatInfo.php index 2f64569c..e6a28041 100644 --- a/framework/I18N/core/DateTimeFormatInfo.php +++ b/framework/I18N/core/DateTimeFormatInfo.php @@ -21,6 +21,8 @@ namespace Prado\I18N\core; /** * Get the CultureInfo class. */ +use Exception; + require_once(dirname(__FILE__).'/CultureInfo.php'); diff --git a/framework/I18N/core/Gettext/TGettext.php b/framework/I18N/core/Gettext/TGettext.php index b9207eb8..464e2f25 100644 --- a/framework/I18N/core/Gettext/TGettext.php +++ b/framework/I18N/core/Gettext/TGettext.php @@ -42,6 +42,7 @@ namespace Prado\I18N\core\Gettext; * Use PHPs builtin error messages */ //ini_set('track_errors', true); +use Exception; /** * File_Gettext diff --git a/framework/I18N/core/MessageCache.php b/framework/I18N/core/MessageCache.php index 722f2aac..3cc10995 100644 --- a/framework/I18N/core/MessageCache.php +++ b/framework/I18N/core/MessageCache.php @@ -10,6 +10,8 @@ namespace Prado\I18N\core; /** * Load the cache lite library. */ +use Exception; + require_once(dirname(__FILE__).'/TCache_Lite.php'); /** diff --git a/framework/I18N/core/MessageSource.php b/framework/I18N/core/MessageSource.php index 4643b058..a3308621 100644 --- a/framework/I18N/core/MessageSource.php +++ b/framework/I18N/core/MessageSource.php @@ -20,6 +20,8 @@ namespace Prado\I18N\core; /** * Get the IMessageSource interface. */ +use Exception; + require_once(dirname(__FILE__).'/IMessageSource.php'); /** diff --git a/framework/I18N/core/MessageSource_Database.php b/framework/I18N/core/MessageSource_Database.php index d887954d..8e4cf393 100644 --- a/framework/I18N/core/MessageSource_Database.php +++ b/framework/I18N/core/MessageSource_Database.php @@ -19,6 +19,11 @@ namespace Prado\I18N\core; /** * Get the MessageSource class file. */ +use PDO; +use Prado\Data\TDataSourceConfig; +use Prado\Exceptions\TConfigurationException; +use Prado\Prado; + require_once(dirname(__FILE__).'/MessageSource.php'); /** diff --git a/framework/I18N/core/MessageSource_MySQL.php b/framework/I18N/core/MessageSource_MySQL.php index 58618dc3..49263e08 100644 --- a/framework/I18N/core/MessageSource_MySQL.php +++ b/framework/I18N/core/MessageSource_MySQL.php @@ -21,6 +21,8 @@ namespace Prado\I18N\core; /** * Get the MessageSource class file. */ +use Exception; + require_once(dirname(__FILE__).'/MessageSource.php'); /** diff --git a/framework/I18N/core/MessageSource_XLIFF.php b/framework/I18N/core/MessageSource_XLIFF.php index 2a2353ea..601fd9a0 100644 --- a/framework/I18N/core/MessageSource_XLIFF.php +++ b/framework/I18N/core/MessageSource_XLIFF.php @@ -21,6 +21,11 @@ namespace Prado\I18N\core; /** * Get the MessageSource class file. */ +use DOMDocument; +use DOMXPath; +use Prado\Exceptions\TException; +use Prado\Exceptions\TIOException; + require_once(dirname(__FILE__).'/MessageSource.php'); /** diff --git a/framework/I18N/core/MessageSource_gettext.php b/framework/I18N/core/MessageSource_gettext.php index 9c7167cb..0033619c 100644 --- a/framework/I18N/core/MessageSource_gettext.php +++ b/framework/I18N/core/MessageSource_gettext.php @@ -21,6 +21,10 @@ namespace Prado\I18N\core; /** * Get the MessageSource class file. */ +use Prado\Exceptions\TException; +use Prado\Exceptions\TIOException; +use Prado\I18N\core\Gettext\TGettext; + require_once(dirname(__FILE__).'/MessageSource.php'); /** diff --git a/framework/I18N/core/NumberFormatInfo.php b/framework/I18N/core/NumberFormatInfo.php index c48f6e6b..c25e3d6f 100644 --- a/framework/I18N/core/NumberFormatInfo.php +++ b/framework/I18N/core/NumberFormatInfo.php @@ -21,6 +21,8 @@ namespace Prado\I18N\core; /** * Get the CultureInfo class file. */ +use Exception; + require_once(dirname(__FILE__).'/CultureInfo.php'); /** diff --git a/framework/I18N/core/TCache_Lite.php b/framework/I18N/core/TCache_Lite.php index eaffd9ee..bb06748c 100644 --- a/framework/I18N/core/TCache_Lite.php +++ b/framework/I18N/core/TCache_Lite.php @@ -17,6 +17,7 @@ */ namespace Prado\I18N\core; +use Exception; /** * Fast, light and safe Cache Class diff --git a/framework/I18N/core/TMessageSourceIOException.php b/framework/I18N/core/TMessageSourceIOException.php index 70fa718e..ce9e086a 100644 --- a/framework/I18N/core/TMessageSourceIOException.php +++ b/framework/I18N/core/TMessageSourceIOException.php @@ -16,6 +16,7 @@ */ namespace Prado\I18N\core; +use Prado\Exceptions\TException; /** * TMessageSourceIOException thrown when unable to modify message source -- cgit v1.2.3