summaryrefslogtreecommitdiff
path: root/framework/I18N/core
diff options
context:
space:
mode:
authorDavid <ottodavid@gmx.net>2015-07-11 12:31:44 +0200
committerDavid <ottodavid@gmx.net>2015-07-11 12:39:42 +0200
commitb46b4e7acb00715982a8d3543fb22f5ac64c88fe (patch)
tree88a6aa5c49a05874d1c2d3f64eb5f283e0c87cb1 /framework/I18N/core
parent6dae236ec5528522de472637f9d70a98158b9a5d (diff)
Added missing use statements in framework
Diffstat (limited to 'framework/I18N/core')
-rw-r--r--framework/I18N/core/ChoiceFormat.php1
-rw-r--r--framework/I18N/core/CultureInfo.php1
-rw-r--r--framework/I18N/core/DateFormat.php3
-rw-r--r--framework/I18N/core/DateTimeFormatInfo.php2
-rw-r--r--framework/I18N/core/Gettext/TGettext.php1
-rw-r--r--framework/I18N/core/MessageCache.php2
-rw-r--r--framework/I18N/core/MessageSource.php2
-rw-r--r--framework/I18N/core/MessageSource_Database.php5
-rw-r--r--framework/I18N/core/MessageSource_MySQL.php2
-rw-r--r--framework/I18N/core/MessageSource_XLIFF.php5
-rw-r--r--framework/I18N/core/MessageSource_gettext.php4
-rw-r--r--framework/I18N/core/NumberFormatInfo.php2
-rw-r--r--framework/I18N/core/TCache_Lite.php1
-rw-r--r--framework/I18N/core/TMessageSourceIOException.php1
14 files changed, 32 insertions, 0 deletions
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