diff options
author | David <ottodavid@gmx.net> | 2015-07-11 12:31:44 +0200 |
---|---|---|
committer | David <ottodavid@gmx.net> | 2015-07-11 12:39:42 +0200 |
commit | b46b4e7acb00715982a8d3543fb22f5ac64c88fe (patch) | |
tree | 88a6aa5c49a05874d1c2d3f64eb5f283e0c87cb1 /framework/Data/ActiveRecord | |
parent | 6dae236ec5528522de472637f9d70a98158b9a5d (diff) |
Added missing use statements in framework
Diffstat (limited to 'framework/Data/ActiveRecord')
25 files changed, 104 insertions, 0 deletions
diff --git a/framework/Data/ActiveRecord/Exceptions/TActiveRecordException.php b/framework/Data/ActiveRecord/Exceptions/TActiveRecordException.php index 063a4cd3..1ec7e597 100644 --- a/framework/Data/ActiveRecord/Exceptions/TActiveRecordException.php +++ b/framework/Data/ActiveRecord/Exceptions/TActiveRecordException.php @@ -10,6 +10,8 @@ */ namespace Prado\Data\ActiveRecord\Exceptions; +use Prado\Exceptions\TDbException; +use Prado\Prado; /** * Base exception class for Active Records. diff --git a/framework/Data/ActiveRecord/Relations/TActiveRecordBelongsTo.php b/framework/Data/ActiveRecord/Relations/TActiveRecordBelongsTo.php index ad995c30..3ff2d196 100644 --- a/framework/Data/ActiveRecord/Relations/TActiveRecordBelongsTo.php +++ b/framework/Data/ActiveRecord/Relations/TActiveRecordBelongsTo.php @@ -14,6 +14,9 @@ namespace Prado\Data\ActiveRecord\Relations; /** * Loads base active record relationship class. */ +use Prado\Data\ActiveRecord\Exceptions\TActiveRecordException; +use Prado\Prado; + Prado::using('System.Data.ActiveRecord.Relations.TActiveRecordRelation'); /** diff --git a/framework/Data/ActiveRecord/Relations/TActiveRecordHasMany.php b/framework/Data/ActiveRecord/Relations/TActiveRecordHasMany.php index 297c3eb2..06c14950 100644 --- a/framework/Data/ActiveRecord/Relations/TActiveRecordHasMany.php +++ b/framework/Data/ActiveRecord/Relations/TActiveRecordHasMany.php @@ -14,6 +14,8 @@ namespace Prado\Data\ActiveRecord\Relations; /** * Loads base active record relations class. */ +use Prado\Prado; + Prado::using('System.Data.ActiveRecord.Relations.TActiveRecordRelation'); /** diff --git a/framework/Data/ActiveRecord/Relations/TActiveRecordHasManyAssociation.php b/framework/Data/ActiveRecord/Relations/TActiveRecordHasManyAssociation.php index 41a4ab69..f5d644be 100644 --- a/framework/Data/ActiveRecord/Relations/TActiveRecordHasManyAssociation.php +++ b/framework/Data/ActiveRecord/Relations/TActiveRecordHasManyAssociation.php @@ -14,6 +14,9 @@ namespace Prado\Data\ActiveRecord\Relations; /** * Loads base active record relations class. */ +use Prado\Data\ActiveRecord\TActiveRecord; +use Prado\Prado; + Prado::using('System.Data.ActiveRecord.Relations.TActiveRecordRelation'); /** diff --git a/framework/Data/ActiveRecord/Relations/TActiveRecordHasOne.php b/framework/Data/ActiveRecord/Relations/TActiveRecordHasOne.php index 7bd54561..320cfc32 100644 --- a/framework/Data/ActiveRecord/Relations/TActiveRecordHasOne.php +++ b/framework/Data/ActiveRecord/Relations/TActiveRecordHasOne.php @@ -14,6 +14,9 @@ namespace Prado\Data\ActiveRecord\Relations; /** * Loads base active record relationship class. */ +use Prado\Data\ActiveRecord\Exceptions\TActiveRecordException; +use Prado\Prado; + Prado::using('System.Data.ActiveRecord.Relations.TActiveRecordRelation'); /** diff --git a/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php b/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php index e9c79e1a..d7f6d0a7 100644 --- a/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php +++ b/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php @@ -14,6 +14,10 @@ namespace Prado\Data\ActiveRecord\Relations; /** * Load active record relationship context. */ +use Prado\Data\ActiveRecord\Exceptions\TActiveRecordException; +use Prado\Data\ActiveRecord\TActiveRecord; +use Prado\Prado; + Prado::using('System.Data.ActiveRecord.Relations.TActiveRecordRelationContext'); /** diff --git a/framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.php b/framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.php index 30f423b7..2af4ec7d 100644 --- a/framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.php +++ b/framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.php @@ -10,6 +10,11 @@ */ namespace Prado\Data\ActiveRecord\Relations; +use Prado\Collections\TList; +use Prado\Data\ActiveRecord\Exceptions\TActiveRecordException; +use Prado\Data\ActiveRecord\TActiveRecord; +use Prado\Data\ActiveRecord\TActiveRecordCriteria; +use Prado\Prado; /** * TActiveRecordRelationContext holds information regarding record relationships diff --git a/framework/Data/ActiveRecord/Scaffold/InputBuilder/TIbmScaffoldInput.php b/framework/Data/ActiveRecord/Scaffold/InputBuilder/TIbmScaffoldInput.php index 8f3d78ff..7c55fa14 100644 --- a/framework/Data/ActiveRecord/Scaffold/InputBuilder/TIbmScaffoldInput.php +++ b/framework/Data/ActiveRecord/Scaffold/InputBuilder/TIbmScaffoldInput.php @@ -11,6 +11,8 @@ namespace Prado\Data\ActiveRecord\Scaffold\InputBuilder; +use Prado\Prado; + Prado::using('System.Data.ActiveRecord.Scaffold.InputBuilder.TScaffoldInputCommon'); class TIbmScaffoldInput extends TScaffoldInputCommon diff --git a/framework/Data/ActiveRecord/Scaffold/InputBuilder/TMssqlScaffoldInput.php b/framework/Data/ActiveRecord/Scaffold/InputBuilder/TMssqlScaffoldInput.php index f713383f..41c50dad 100644 --- a/framework/Data/ActiveRecord/Scaffold/InputBuilder/TMssqlScaffoldInput.php +++ b/framework/Data/ActiveRecord/Scaffold/InputBuilder/TMssqlScaffoldInput.php @@ -10,6 +10,8 @@ namespace Prado\Data\ActiveRecord\Scaffold\InputBuilder; +use Prado\Prado; + Prado::using('System.Data.ActiveRecord.Scaffold.InputBuilder.TScaffoldInputCommon'); class TMssqlScaffoldInput extends TScaffoldInputCommon diff --git a/framework/Data/ActiveRecord/Scaffold/InputBuilder/TMysqlScaffoldInput.php b/framework/Data/ActiveRecord/Scaffold/InputBuilder/TMysqlScaffoldInput.php index 36585645..cd27fbab 100644 --- a/framework/Data/ActiveRecord/Scaffold/InputBuilder/TMysqlScaffoldInput.php +++ b/framework/Data/ActiveRecord/Scaffold/InputBuilder/TMysqlScaffoldInput.php @@ -10,6 +10,8 @@ namespace Prado\Data\ActiveRecord\Scaffold\InputBuilder; +use Prado\Prado; + Prado::using('System.Data.ActiveRecord.Scaffold.InputBuilder.TScaffoldInputCommon'); class TMysqlScaffoldInput extends TScaffoldInputCommon diff --git a/framework/Data/ActiveRecord/Scaffold/InputBuilder/TPgsqlScaffoldInput.php b/framework/Data/ActiveRecord/Scaffold/InputBuilder/TPgsqlScaffoldInput.php index 83823403..46da92e8 100644 --- a/framework/Data/ActiveRecord/Scaffold/InputBuilder/TPgsqlScaffoldInput.php +++ b/framework/Data/ActiveRecord/Scaffold/InputBuilder/TPgsqlScaffoldInput.php @@ -10,6 +10,8 @@ namespace Prado\Data\ActiveRecord\Scaffold\InputBuilder; +use Prado\Prado; + Prado::using('System.Data.ActiveRecord.Scaffold.InputBuilder.TScaffoldInputCommon'); class TPgsqlScaffoldInput extends TScaffoldInputCommon diff --git a/framework/Data/ActiveRecord/Scaffold/InputBuilder/TScaffoldInputBase.php b/framework/Data/ActiveRecord/Scaffold/InputBuilder/TScaffoldInputBase.php index df0b9fa3..d1c964e0 100644 --- a/framework/Data/ActiveRecord/Scaffold/InputBuilder/TScaffoldInputBase.php +++ b/framework/Data/ActiveRecord/Scaffold/InputBuilder/TScaffoldInputBase.php @@ -10,6 +10,9 @@ namespace Prado\Data\ActiveRecord\Scaffold\InputBuilder; +use Prado\Data\Common\TDbTableColumn; +use Prado\Exceptions\TConfigurationException; + class TScaffoldInputBase { const DEFAULT_ID = 'scaffold_input'; diff --git a/framework/Data/ActiveRecord/Scaffold/InputBuilder/TScaffoldInputCommon.php b/framework/Data/ActiveRecord/Scaffold/InputBuilder/TScaffoldInputCommon.php index 85e6a7c3..f366d5eb 100644 --- a/framework/Data/ActiveRecord/Scaffold/InputBuilder/TScaffoldInputCommon.php +++ b/framework/Data/ActiveRecord/Scaffold/InputBuilder/TScaffoldInputCommon.php @@ -10,6 +10,23 @@ namespace Prado\Data\ActiveRecord\Scaffold\InputBuilder; +use Prado\Prado; +use Prado\TPropertyValue; +use Prado\Web\UI\TControl; +use Prado\Web\UI\WebControls\TCheckBox; +use Prado\Web\UI\WebControls\TCheckBoxList; +use Prado\Web\UI\WebControls\TDataTypeValidator; +use Prado\Web\UI\WebControls\TDatePicker; +use Prado\Web\UI\WebControls\TDatePickerInputMode; +use Prado\Web\UI\WebControls\TDropDownList; +use Prado\Web\UI\WebControls\TRadioButtonList; +use Prado\Web\UI\WebControls\TRangeValidator; +use Prado\Web\UI\WebControls\TRequiredFieldValidator; +use Prado\Web\UI\WebControls\TTextBox; +use Prado\Web\UI\WebControls\TTextBoxMode; +use Prado\Web\UI\WebControls\TValidationDataType; +use Prado\Web\UI\WebControls\TValidatorDisplayStyle; + Prado::using('System.Data.ActiveRecord.Scaffold.InputBuilder.TScaffoldInputBase'); class TScaffoldInputCommon extends TScaffoldInputBase diff --git a/framework/Data/ActiveRecord/Scaffold/InputBuilder/TSqliteScaffoldInput.php b/framework/Data/ActiveRecord/Scaffold/InputBuilder/TSqliteScaffoldInput.php index 2a06548e..38e37a18 100644 --- a/framework/Data/ActiveRecord/Scaffold/InputBuilder/TSqliteScaffoldInput.php +++ b/framework/Data/ActiveRecord/Scaffold/InputBuilder/TSqliteScaffoldInput.php @@ -10,6 +10,8 @@ namespace Prado\Data\ActiveRecord\Scaffold\InputBuilder; +use Prado\Prado; + Prado::using('System.Data.ActiveRecord.Scaffold.InputBuilder.TScaffoldInputCommon'); class TSqliteScaffoldInput extends TScaffoldInputCommon diff --git a/framework/Data/ActiveRecord/Scaffold/TScaffoldBase.php b/framework/Data/ActiveRecord/Scaffold/TScaffoldBase.php index 209fd5bd..8e044606 100644 --- a/framework/Data/ActiveRecord/Scaffold/TScaffoldBase.php +++ b/framework/Data/ActiveRecord/Scaffold/TScaffoldBase.php @@ -14,6 +14,12 @@ namespace Prado\Data\ActiveRecord\Scaffold; /** * Include the base Active Record class. */ +use Prado\Data\ActiveRecord\TActiveRecord; +use Prado\Exceptions\TConfigurationException; +use Prado\Prado; +use Prado\TPropertyValue; +use Prado\Web\UI\TTemplateControl; + Prado::using('System.Data.ActiveRecord.TActiveRecord'); /** diff --git a/framework/Data/ActiveRecord/Scaffold/TScaffoldEditView.php b/framework/Data/ActiveRecord/Scaffold/TScaffoldEditView.php index 234a57f9..df251efa 100644 --- a/framework/Data/ActiveRecord/Scaffold/TScaffoldEditView.php +++ b/framework/Data/ActiveRecord/Scaffold/TScaffoldEditView.php @@ -14,6 +14,12 @@ namespace Prado\Data\ActiveRecord\Scaffold; /** * Load scaffold base. */ +use Prado\Data\ActiveRecord\Scaffold\InputBuilder\TScaffoldInputBase; +use Prado\Exceptions\TConfigurationException; +use Prado\Prado; +use Prado\TPropertyValue; +use Prado\Web\UI\WebControls\TListItemType; + Prado::using('System.Data.ActiveRecord.Scaffold.TScaffoldBase'); /** diff --git a/framework/Data/ActiveRecord/Scaffold/TScaffoldListView.php b/framework/Data/ActiveRecord/Scaffold/TScaffoldListView.php index 619436c3..e7e5ab9c 100644 --- a/framework/Data/ActiveRecord/Scaffold/TScaffoldListView.php +++ b/framework/Data/ActiveRecord/Scaffold/TScaffoldListView.php @@ -14,6 +14,14 @@ namespace Prado\Data\ActiveRecord\Scaffold; /** * Load the scaffold base class. */ +use Prado\Data\ActiveRecord\TActiveRecordCriteria; +use Prado\Exceptions\TConfigurationException; +use Prado\Prado; +use Prado\TPropertyValue; +use Prado\Web\UI\WebControls\IItemDataRenderer; +use Prado\Web\UI\WebControls\TListItemType; +use Prado\Web\UI\WebControls\TRepeaterCommandEventParameter; + Prado::using('System.Data.ActiveRecord.Scaffold.TScaffoldBase'); /** diff --git a/framework/Data/ActiveRecord/Scaffold/TScaffoldSearch.php b/framework/Data/ActiveRecord/Scaffold/TScaffoldSearch.php index 653f06fc..26b8e0b5 100644 --- a/framework/Data/ActiveRecord/Scaffold/TScaffoldSearch.php +++ b/framework/Data/ActiveRecord/Scaffold/TScaffoldSearch.php @@ -14,6 +14,9 @@ namespace Prado\Data\ActiveRecord\Scaffold; /** * Import the scaffold base. */ +use Prado\Exceptions\TConfigurationException; +use Prado\Prado; + Prado::using('System.Data.ActiveRecord.Scaffold.TScaffoldBase'); /** diff --git a/framework/Data/ActiveRecord/Scaffold/TScaffoldView.php b/framework/Data/ActiveRecord/Scaffold/TScaffoldView.php index f5e03f02..27adb544 100644 --- a/framework/Data/ActiveRecord/Scaffold/TScaffoldView.php +++ b/framework/Data/ActiveRecord/Scaffold/TScaffoldView.php @@ -14,6 +14,8 @@ namespace Prado\Data\ActiveRecord\Scaffold; /** * Import scaffold base, list, edit and search controls. */ +use Prado\Prado; + Prado::using('System.Data.ActiveRecord.Scaffold.TScaffoldBase'); Prado::using('System.Data.ActiveRecord.Scaffold.TScaffoldListView'); Prado::using('System.Data.ActiveRecord.Scaffold.TScaffoldEditView'); diff --git a/framework/Data/ActiveRecord/TActiveRecord.php b/framework/Data/ActiveRecord/TActiveRecord.php index e8fcbb9a..27c51fcd 100644 --- a/framework/Data/ActiveRecord/TActiveRecord.php +++ b/framework/Data/ActiveRecord/TActiveRecord.php @@ -14,6 +14,13 @@ namespace Prado\Data\ActiveRecord; /** * Load record manager, criteria and relations. */ +use Prado\Data\ActiveRecord\Exceptions\TActiveRecordException; +use Prado\Data\ActiveRecord\Relations\TActiveRecordRelationContext; +use Prado\Data\DataGateway\TSqlCriteria; +use Prado\Prado; +use Prado\TPropertyValue; +use ReflectionClass; + Prado::using('System.Data.ActiveRecord.TActiveRecordManager'); Prado::using('System.Data.ActiveRecord.TActiveRecordCriteria'); Prado::using('System.Data.ActiveRecord.Relations.TActiveRecordRelationContext'); diff --git a/framework/Data/ActiveRecord/TActiveRecordChangeEventParameter.php b/framework/Data/ActiveRecord/TActiveRecordChangeEventParameter.php index 7ee35aed..a41b6df8 100644 --- a/framework/Data/ActiveRecord/TActiveRecordChangeEventParameter.php +++ b/framework/Data/ActiveRecord/TActiveRecordChangeEventParameter.php @@ -10,6 +10,7 @@ */ namespace Prado\Data\ActiveRecord; +use Prado\TPropertyValue; /** * TActiveRecordChangeEventParameter class diff --git a/framework/Data/ActiveRecord/TActiveRecordConfig.php b/framework/Data/ActiveRecord/TActiveRecordConfig.php index e862b52b..3975032a 100644 --- a/framework/Data/ActiveRecord/TActiveRecordConfig.php +++ b/framework/Data/ActiveRecord/TActiveRecordConfig.php @@ -11,6 +11,10 @@ namespace Prado\Data\ActiveRecord; +use Prado\Data\TDataSourceConfig; +use Prado\Prado; +use Prado\TPropertyValue; + Prado::using('System.Data.TDataSourceConfig'); Prado::using('System.Data.ActiveRecord.TActiveRecordManager'); diff --git a/framework/Data/ActiveRecord/TActiveRecordCriteria.php b/framework/Data/ActiveRecord/TActiveRecordCriteria.php index 59a80212..74b71511 100644 --- a/framework/Data/ActiveRecord/TActiveRecordCriteria.php +++ b/framework/Data/ActiveRecord/TActiveRecordCriteria.php @@ -11,6 +11,9 @@ namespace Prado\Data\ActiveRecord; +use Prado\Data\DataGateway\TSqlCriteria; +use Prado\Prado; + Prado::using('System.Data.DataGateway.TSqlCriteria'); /** diff --git a/framework/Data/ActiveRecord/TActiveRecordGateway.php b/framework/Data/ActiveRecord/TActiveRecordGateway.php index c4eaeb2c..2c231f80 100644 --- a/framework/Data/ActiveRecord/TActiveRecordGateway.php +++ b/framework/Data/ActiveRecord/TActiveRecordGateway.php @@ -10,6 +10,15 @@ */ namespace Prado\Data\ActiveRecord; +use Prado\Data\ActiveRecord\Exceptions\TActiveRecordException; +use Prado\Data\ActiveRecord\Relations\TActiveRecordRelationContext; +use Prado\Data\Common\TDbMetaData; +use Prado\Data\Common\TDbTableColumn; +use Prado\Data\DataGateway\TDataGatewayCommand; +use Prado\Data\DataGateway\TSqlCriteria; +use Prado\Data\TDbConnection; +use Prado\Prado; +use ReflectionClass; /** * TActiveRecordGateway excutes the SQL command queries and returns the data diff --git a/framework/Data/ActiveRecord/TActiveRecordManager.php b/framework/Data/ActiveRecord/TActiveRecordManager.php index 63f51bfa..3c21f432 100644 --- a/framework/Data/ActiveRecord/TActiveRecordManager.php +++ b/framework/Data/ActiveRecord/TActiveRecordManager.php @@ -11,6 +11,9 @@ namespace Prado\Data\ActiveRecord; +use Prado\Prado; +use Prado\TPropertyValue; + Prado::using('System.Data.TDbConnection'); Prado::using('System.Data.ActiveRecord.TActiveRecord'); Prado::using('System.Data.ActiveRecord.Exceptions.TActiveRecordException'); |