Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
884977a7
Commit
884977a7
authored
Mar 23, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed util to helpers.
parent
339ac9b4
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
37 additions
and
37 deletions
+37
-37
Application.php
framework/base/Application.php
+1
-1
Controller.php
framework/base/Controller.php
+2
-2
Dictionary.php
framework/base/Dictionary.php
+1
-1
ErrorHandler.php
framework/base/ErrorHandler.php
+1
-1
Model.php
framework/base/Model.php
+1
-1
Module.php
framework/base/Module.php
+2
-2
Theme.php
framework/base/Theme.php
+1
-1
View.php
framework/base/View.php
+1
-1
Widget.php
framework/base/Widget.php
+1
-1
AppController.php
framework/console/controllers/AppController.php
+1
-1
HelpController.php
framework/console/controllers/HelpController.php
+1
-1
MigrateController.php
framework/console/controllers/MigrateController.php
+1
-1
ActiveRecord.php
framework/db/ActiveRecord.php
+1
-1
ArrayHelper.php
framework/helpers/ArrayHelper.php
+4
-4
ConsoleColor.php
framework/helpers/ConsoleColor.php
+1
-1
FileHelper.php
framework/helpers/FileHelper.php
+1
-1
Html.php
framework/helpers/Html.php
+4
-4
SecurityHelper.php
framework/helpers/SecurityHelper.php
+1
-1
StringHelper.php
framework/helpers/StringHelper.php
+1
-1
VarDumper.php
framework/helpers/VarDumper.php
+1
-1
CookieCollection.php
framework/web/CookieCollection.php
+1
-1
Response.php
framework/web/Response.php
+1
-1
Sort.php
framework/web/Sort.php
+1
-1
ActiveForm.php
framework/widgets/ActiveForm.php
+3
-3
ArrayHelperTest.php
tests/unit/framework/util/ArrayHelperTest.php
+1
-1
HtmlTest.php
tests/unit/framework/util/HtmlTest.php
+1
-1
SiteController.php
tests/web/app/protected/controllers/SiteController.php
+1
-1
No files found.
framework/base/Application.php
View file @
884977a7
...
...
@@ -8,7 +8,7 @@
namespace
yii\base
;
use
Yii
;
use
yii\
util
\FileHelper
;
use
yii\
helpers
\FileHelper
;
/**
* Application is the base class for all application classes.
...
...
framework/base/Controller.php
View file @
884977a7
...
...
@@ -8,8 +8,8 @@
namespace
yii\base
;
use
Yii
;
use
yii\
util
\FileHelper
;
use
yii\
util
\StringHelper
;
use
yii\
helpers
\FileHelper
;
use
yii\
helpers
\StringHelper
;
/**
* Controller is the base class for classes containing controller logic.
...
...
framework/base/Dictionary.php
View file @
884977a7
...
...
@@ -7,7 +7,7 @@
namespace
yii\base
;
use
yii\
util
\ArrayHelper
;
use
yii\
helpers
\ArrayHelper
;
/**
* Dictionary implements a collection that stores key-value pairs.
...
...
framework/base/ErrorHandler.php
View file @
884977a7
...
...
@@ -16,7 +16,7 @@ namespace yii\base;
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
use
yii\
util
\VarDumper
;
use
yii\
helpers
\VarDumper
;
class
ErrorHandler
extends
Component
{
...
...
framework/base/Model.php
View file @
884977a7
...
...
@@ -7,7 +7,7 @@
namespace
yii\base
;
use
yii\
util
\StringHelper
;
use
yii\
helpers
\StringHelper
;
use
yii\validators\Validator
;
use
yii\validators\RequiredValidator
;
...
...
framework/base/Module.php
View file @
884977a7
...
...
@@ -8,8 +8,8 @@
namespace
yii\base
;
use
Yii
;
use
yii\
util
\StringHelper
;
use
yii\
util
\FileHelper
;
use
yii\
helpers
\StringHelper
;
use
yii\
helpers
\FileHelper
;
/**
* Module is the base class for module and application classes.
...
...
framework/base/Theme.php
View file @
884977a7
...
...
@@ -9,7 +9,7 @@ namespace yii\base;
use
Yii
;
use
yii\base\InvalidConfigException
;
use
yii\
util
\FileHelper
;
use
yii\
helpers
\FileHelper
;
/**
* Theme represents an application theme.
...
...
framework/base/View.php
View file @
884977a7
...
...
@@ -9,7 +9,7 @@ namespace yii\base;
use
Yii
;
use
yii\base\Application
;
use
yii\
util
\FileHelper
;
use
yii\
helpers
\FileHelper
;
/**
* View represents a view object in the MVC pattern.
...
...
framework/base/Widget.php
View file @
884977a7
...
...
@@ -8,7 +8,7 @@
namespace
yii\base
;
use
Yii
;
use
yii\
util
\FileHelper
;
use
yii\
helpers
\FileHelper
;
/**
* Widget is the base class for widgets.
...
...
framework/console/controllers/AppController.php
View file @
884977a7
...
...
@@ -8,7 +8,7 @@
namespace
yii\console\controllers
;
use
yii\console\Controller
;
use
yii\
util
\FileHelper
;
use
yii\
helpers
\FileHelper
;
use
yii\base\Exception
;
/**
...
...
framework/console/controllers/HelpController.php
View file @
884977a7
...
...
@@ -13,7 +13,7 @@ use yii\console\Exception;
use
yii\base\InlineAction
;
use
yii\console\Controller
;
use
yii\console\Request
;
use
yii\
util
\StringHelper
;
use
yii\
helpers
\StringHelper
;
/**
* This command provides help information about console commands.
...
...
framework/console/controllers/MigrateController.php
View file @
884977a7
...
...
@@ -13,7 +13,7 @@ use yii\console\Exception;
use
yii\console\Controller
;
use
yii\db\Connection
;
use
yii\db\Query
;
use
yii\
util
\ArrayHelper
;
use
yii\
helpers
\ArrayHelper
;
/**
* This command manages application migrations.
...
...
framework/db/ActiveRecord.php
View file @
884977a7
...
...
@@ -16,7 +16,7 @@ use yii\base\InvalidCallException;
use
yii\db\Connection
;
use
yii\db\TableSchema
;
use
yii\db\Expression
;
use
yii\
util
\StringHelper
;
use
yii\
helpers
\StringHelper
;
/**
* ActiveRecord is the base class for classes representing relational data in terms of objects.
...
...
framework/helpers/ArrayHelper.php
View file @
884977a7
...
...
@@ -5,7 +5,7 @@
* @license http://www.yiiframework.com/license/
*/
namespace
yii\
util
;
namespace
yii\
helpers
;
use
Yii
;
use
yii\base\InvalidParamException
;
...
...
@@ -59,11 +59,11 @@ class ArrayHelper
*
* ~~~
* // working with array
* $username = \yii\
util
\ArrayHelper::getValue($_POST, 'username');
* $username = \yii\
helpers
\ArrayHelper::getValue($_POST, 'username');
* // working with object
* $username = \yii\
util
\ArrayHelper::getValue($user, 'username');
* $username = \yii\
helpers
\ArrayHelper::getValue($user, 'username');
* // working with anonymous function
* $fullName = \yii\
util
\ArrayHelper::getValue($user, function($user, $defaultValue) {
* $fullName = \yii\
helpers
\ArrayHelper::getValue($user, function($user, $defaultValue) {
* return $user->firstName . ' ' . $user->lastName;
* });
* ~~~
...
...
framework/helpers/ConsoleColor.php
View file @
884977a7
...
...
@@ -5,7 +5,7 @@
* @license http://www.yiiframework.com/license/
*/
namespace
yii\
util
;
namespace
yii\
helpers
;
// todo define how subclassing will work
// todo add a run() or render() method
...
...
framework/helpers/FileHelper.php
View file @
884977a7
...
...
@@ -7,7 +7,7 @@
* @license http://www.yiiframework.com/license/
*/
namespace
yii\
util
;
namespace
yii\
helpers
;
use
yii\base\Exception
;
use
yii\base\InvalidConfigException
;
...
...
framework/helpers/Html.php
View file @
884977a7
...
...
@@ -5,7 +5,7 @@
* @license http://www.yiiframework.com/license/
*/
namespace
yii\
util
;
namespace
yii\
helpers
;
use
Yii
;
use
yii\base\InvalidParamException
;
...
...
@@ -655,7 +655,7 @@ class Html
* are the corresponding option labels. The array can also be nested (i.e. some array values are arrays too).
* For each sub-array, an option group will be generated whose label is the key associated with the sub-array.
* If you have a list of data models, you may convert them into the format described above using
* [[\yii\
util
\ArrayHelper::map()]].
* [[\yii\
helpers
\ArrayHelper::map()]].
*
* Note, the values and labels will be automatically HTML-encoded by this method, and the blank spaces in
* the labels will also be HTML-encoded.
...
...
@@ -695,7 +695,7 @@ class Html
* are the corresponding option labels. The array can also be nested (i.e. some array values are arrays too).
* For each sub-array, an option group will be generated whose label is the key associated with the sub-array.
* If you have a list of data models, you may convert them into the format described above using
* [[\yii\
util
\ArrayHelper::map()]].
* [[\yii\
helpers
\ArrayHelper::map()]].
*
* Note, the values and labels will be automatically HTML-encoded by this method, and the blank spaces in
* the labels will also be HTML-encoded.
...
...
@@ -866,7 +866,7 @@ class Html
* are the corresponding option labels. The array can also be nested (i.e. some array values are arrays too).
* For each sub-array, an option group will be generated whose label is the key associated with the sub-array.
* If you have a list of data models, you may convert them into the format described above using
* [[\yii\
util
\ArrayHelper::map()]].
* [[\yii\
helpers
\ArrayHelper::map()]].
*
* Note, the values and labels will be automatically HTML-encoded by this method, and the blank spaces in
* the labels will also be HTML-encoded.
...
...
framework/helpers/SecurityHelper.php
View file @
884977a7
...
...
@@ -5,7 +5,7 @@
* @license http://www.yiiframework.com/license/
*/
namespace
yii\
util
;
namespace
yii\
helpers
;
use
Yii
;
use
yii\base\Exception
;
...
...
framework/helpers/StringHelper.php
View file @
884977a7
...
...
@@ -5,7 +5,7 @@
* @license http://www.yiiframework.com/license/
*/
namespace
yii\
util
;
namespace
yii\
helpers
;
/**
* StringHelper
...
...
framework/helpers/VarDumper.php
View file @
884977a7
...
...
@@ -6,7 +6,7 @@
* @license http://www.yiiframework.com/license/
*/
namespace
yii\
util
;
namespace
yii\
helpers
;
/**
* VarDumper is intended to replace the buggy PHP function var_dump and print_r.
...
...
framework/web/CookieCollection.php
View file @
884977a7
...
...
@@ -9,7 +9,7 @@ namespace yii\web;
use
Yii
;
use
yii\base\DictionaryIterator
;
use
yii\
util
\SecurityHelper
;
use
yii\
helpers
\SecurityHelper
;
/**
* CookieCollection maintains the cookies available in the current request.
...
...
framework/web/Response.php
View file @
884977a7
...
...
@@ -7,7 +7,7 @@
namespace
yii\web
;
use
yii\
util
\FileHelper
;
use
yii\
helpers
\FileHelper
;
/**
* @author Qiang Xue <qiang.xue@gmail.com>
...
...
framework/web/Sort.php
View file @
884977a7
...
...
@@ -8,7 +8,7 @@
namespace
yii\web
;
use
Yii
;
use
yii\
util
\Html
;
use
yii\
helpers
\Html
;
/**
* Sort represents information relevant to sorting.
...
...
framework/widgets/ActiveForm.php
View file @
884977a7
...
...
@@ -11,8 +11,8 @@ use Yii;
use
yii\base\InvalidParamException
;
use
yii\base\Widget
;
use
yii\base\Model
;
use
yii\
util
\Html
;
use
yii\
util
\ArrayHelper
;
use
yii\
helpers
\Html
;
use
yii\
helpers
\ArrayHelper
;
/**
* ActiveForm ...
...
...
@@ -23,7 +23,7 @@ use yii\util\ArrayHelper;
class
ActiveForm
extends
Widget
{
/**
* @param array|string $action the form action URL. This parameter will be processed by [[\yii\
util
\Html::url()]].
* @param array|string $action the form action URL. This parameter will be processed by [[\yii\
helpers
\Html::url()]].
*/
public
$action
=
''
;
/**
...
...
tests/unit/framework/util/ArrayHelperTest.php
View file @
884977a7
...
...
@@ -2,7 +2,7 @@
namespace
yiiunit\framework\util
;
use
yii\
util
\ArrayHelper
;
use
yii\
helpers
\ArrayHelper
;
class
ArrayHelperTest
extends
\yii\test\TestCase
{
...
...
tests/unit/framework/util/HtmlTest.php
View file @
884977a7
...
...
@@ -3,7 +3,7 @@
namespace
yiiunit\framework\util
;
use
Yii
;
use
yii\
util
\Html
;
use
yii\
helpers
\Html
;
use
yii\web\Application
;
class
HtmlTest
extends
\yii\test\TestCase
...
...
tests/web/app/protected/controllers/SiteController.php
View file @
884977a7
<?php
use
yii\
util
\Html
;
use
yii\
helpers
\Html
;
class
DefaultController
extends
\yii\web\Controller
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment