summaryrefslogtreecommitdiff
path: root/framework/I18N
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
parent6dae236ec5528522de472637f9d70a98158b9a5d (diff)
Added missing use statements in framework
Diffstat (limited to 'framework/I18N')
-rw-r--r--framework/I18N/TChoiceFormat.php3
-rw-r--r--framework/I18N/TDateFormat.php3
-rw-r--r--framework/I18N/TGlobalization.php2
-rw-r--r--framework/I18N/TI18NControl.php1
-rw-r--r--framework/I18N/TNumberFormat.php4
-rw-r--r--framework/I18N/TTranslate.php6
-rw-r--r--framework/I18N/TTranslateParameter.php5
-rw-r--r--framework/I18N/Translation.php6
-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
22 files changed, 62 insertions, 0 deletions
diff --git a/framework/I18N/TChoiceFormat.php b/framework/I18N/TChoiceFormat.php
index 5fa232b8..830ab3ef 100644
--- a/framework/I18N/TChoiceFormat.php
+++ b/framework/I18N/TChoiceFormat.php
@@ -14,6 +14,9 @@ namespace Prado\I18N;
/**
* Get the ChoiceFormat class.
*/
+use Prado\I18N\core\ChoiceFormat;
+use Prado\Prado;
+
Prado::using('System.I18N.core.ChoiceFormat');
Prado::using('System.I18N.TTranslate');
diff --git a/framework/I18N/TDateFormat.php b/framework/I18N/TDateFormat.php
index eedabfb4..48e1ae75 100644
--- a/framework/I18N/TDateFormat.php
+++ b/framework/I18N/TDateFormat.php
@@ -14,6 +14,9 @@ namespace Prado\I18N;
/**
* Get the DateFormat class.
*/
+use Prado\I18N\core\DateFormat;
+use Prado\Prado;
+
Prado::using('System.I18N.core.DateFormat');
/**
diff --git a/framework/I18N/TGlobalization.php b/framework/I18N/TGlobalization.php
index f50fdb7e..118ac168 100644
--- a/framework/I18N/TGlobalization.php
+++ b/framework/I18N/TGlobalization.php
@@ -10,6 +10,8 @@
*/
namespace Prado\I18N;
+use Prado\Exceptions\TConfigurationException;
+use Prado\Prado;
use Prado\TApplication;
use Prado\TPropertyValue;
diff --git a/framework/I18N/TI18NControl.php b/framework/I18N/TI18NControl.php
index b137604c..ee506ada 100644
--- a/framework/I18N/TI18NControl.php
+++ b/framework/I18N/TI18NControl.php
@@ -10,6 +10,7 @@
*/
namespace Prado\I18N;
+use Prado\Web\UI\TControl;
/**
* TI18NControl class.
diff --git a/framework/I18N/TNumberFormat.php b/framework/I18N/TNumberFormat.php
index 7940c785..c452ad56 100644
--- a/framework/I18N/TNumberFormat.php
+++ b/framework/I18N/TNumberFormat.php
@@ -14,6 +14,10 @@ namespace Prado\I18N;
/**
* Get the NumberFormat class.
*/
+use Prado\Exceptions\TInvalidDataValueException;
+use Prado\I18N\core\NumberFormat;
+use Prado\Prado;
+
Prado::using('System.I18N.core.NumberFormat');
/**
diff --git a/framework/I18N/TTranslate.php b/framework/I18N/TTranslate.php
index 9e433ddc..a4c8d7ce 100644
--- a/framework/I18N/TTranslate.php
+++ b/framework/I18N/TTranslate.php
@@ -14,6 +14,12 @@ namespace Prado\I18N;
/**
* Get the parent control class.
*/
+use Prado\Collections\TAttributeCollection;
+use Prado\IO\TTextWriter;
+use Prado\Prado;
+use Prado\TPropertyValue;
+use Prado\Web\UI\TControl;
+
Prado::using('System.I18N.TI18NControl');
/**
diff --git a/framework/I18N/TTranslateParameter.php b/framework/I18N/TTranslateParameter.php
index 5d8cdf23..6163b80c 100644
--- a/framework/I18N/TTranslateParameter.php
+++ b/framework/I18N/TTranslateParameter.php
@@ -10,6 +10,11 @@
*/
namespace Prado\I18N;
+use Prado\Exceptions\TException;
+use Prado\IO\TTextWriter;
+use Prado\Prado;
+use Prado\TPropertyValue;
+use Prado\Web\UI\TControl;
/**
* TTranslateParameter component should be used inside the TTranslate component to
diff --git a/framework/I18N/Translation.php b/framework/I18N/Translation.php
index 0f2bc614..3a58b54b 100644
--- a/framework/I18N/Translation.php
+++ b/framework/I18N/Translation.php
@@ -14,6 +14,12 @@ namespace Prado\I18N;
/**
* Get the MessageFormat class.
*/
+use Prado\I18N\core\MessageCache;
+use Prado\I18N\core\MessageFormat;
+use Prado\I18N\core\MessageSource;
+use Prado\Prado;
+use Prado\TPropertyValue;
+
Prado::using('System.I18N.core.MessageFormat');
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