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
637e1160
Commit
637e1160
authored
May 05, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/yiisoft/yii2
parents
0766fbcc
9880d1fa
Hide whitespace changes
Inline
Side-by-side
Showing
96 changed files
with
96 additions
and
192 deletions
+96
-192
assets.php
app/protected/config/assets.php
+1
-2
main.php
app/protected/config/main.php
+1
-2
SiteController.php
app/protected/controllers/SiteController.php
+1
-2
ContactForm.php
app/protected/models/ContactForm.php
+1
-2
LoginForm.php
app/protected/models/LoginForm.php
+1
-2
User.php
app/protected/models/User.php
+1
-2
main.php
app/protected/views/layouts/main.php
+1
-2
contact.php
app/protected/views/site/contact.php
+1
-2
login.php
app/protected/views/site/login.php
+1
-2
assets.php
framework/assets.php
+1
-2
ActionFilter.php
framework/base/ActionFilter.php
+1
-2
Exception.php
framework/base/Exception.php
+1
-2
View.php
framework/base/View.php
+1
-2
ViewEvent.php
framework/base/ViewEvent.php
+1
-2
Widget.php
framework/base/Widget.php
+1
-2
Cache.php
framework/caching/Cache.php
+1
-2
Dependency.php
framework/caching/Dependency.php
+1
-2
MemCacheServer.php
framework/caching/MemCacheServer.php
+1
-2
WinCache.php
framework/caching/WinCache.php
+1
-2
Controller.php
framework/console/Controller.php
+1
-2
AppController.php
framework/console/controllers/AppController.php
+1
-2
AssetController.php
framework/console/controllers/AssetController.php
+1
-2
HelpController.php
framework/console/controllers/HelpController.php
+1
-2
config.php
framework/console/webapp/config.php
+1
-2
index.php
framework/console/webapp/default/index.php
+1
-2
main.php
framework/console/webapp/default/protected/config/main.php
+1
-2
SiteController.php
...e/webapp/default/protected/controllers/SiteController.php
+1
-2
main.php
...k/console/webapp/default/protected/views/layouts/main.php
+1
-2
index.php
...ork/console/webapp/default/protected/views/site/index.php
+1
-2
Exception.php
framework/db/Exception.php
+1
-2
Expression.php
framework/db/Expression.php
+1
-2
Migration.php
framework/db/Migration.php
+1
-2
StaleObjectException.php
framework/db/StaleObjectException.php
+1
-2
ArrayHelper.php
framework/helpers/ArrayHelper.php
+1
-2
FileHelper.php
framework/helpers/FileHelper.php
+1
-2
JsExpression.php
framework/helpers/JsExpression.php
+1
-2
Json.php
framework/helpers/Json.php
+1
-2
SecurityHelper.php
framework/helpers/SecurityHelper.php
+1
-2
VarDumper.php
framework/helpers/VarDumper.php
+1
-2
ArrayHelper.php
framework/helpers/base/ArrayHelper.php
+1
-2
FileHelper.php
framework/helpers/base/FileHelper.php
+1
-2
Json.php
framework/helpers/base/Json.php
+1
-2
VarDumper.php
framework/helpers/base/VarDumper.php
+1
-2
PhpMessageSource.php
framework/i18n/PhpMessageSource.php
+1
-2
plurals.php
framework/i18n/data/plurals.php
+1
-2
EmailTarget.php
framework/logging/EmailTarget.php
+1
-2
ProfileTarget.php
framework/logging/ProfileTarget.php
+1
-2
WebTarget.php
framework/logging/WebTarget.php
+1
-2
SmartyViewRenderer.php
framework/renderers/SmartyViewRenderer.php
+1
-2
InlineValidator.php
framework/validators/InlineValidator.php
+1
-2
NumberValidator.php
framework/validators/NumberValidator.php
+1
-2
UniqueValidator.php
framework/validators/UniqueValidator.php
+1
-2
error.php
framework/views/error.php
+1
-2
AccessControl.php
framework/web/AccessControl.php
+1
-2
AccessRule.php
framework/web/AccessRule.php
+1
-2
AssetBundle.php
framework/web/AssetBundle.php
+1
-2
AssetConverter.php
framework/web/AssetConverter.php
+1
-2
Controller.php
framework/web/Controller.php
+1
-2
HttpCache.php
framework/web/HttpCache.php
+1
-2
IAssetConverter.php
framework/web/IAssetConverter.php
+1
-2
Identity.php
framework/web/Identity.php
+1
-2
PageCache.php
framework/web/PageCache.php
+1
-2
Pagination.php
framework/web/Pagination.php
+1
-2
Sort.php
framework/web/Sort.php
+1
-2
UserEvent.php
framework/web/UserEvent.php
+1
-2
ActiveField.php
framework/widgets/ActiveField.php
+1
-2
Block.php
framework/widgets/Block.php
+1
-2
FragmentCache.php
framework/widgets/FragmentCache.php
+1
-2
MysqlTestCase.php
tests/unit/MysqlTestCase.php
+1
-2
TestCase.php
tests/unit/TestCase.php
+1
-2
ActiveRecord.php
tests/unit/data/ar/ActiveRecord.php
+1
-2
Customer.php
tests/unit/data/ar/Customer.php
+1
-2
Item.php
tests/unit/data/ar/Item.php
+1
-2
Order.php
tests/unit/data/ar/Order.php
+1
-2
OrderItem.php
tests/unit/data/ar/OrderItem.php
+1
-2
Singer.php
tests/unit/data/base/Singer.php
+1
-2
ComponentTest.php
tests/unit/framework/base/ComponentTest.php
+1
-2
ObjectTest.php
tests/unit/framework/base/ObjectTest.php
+1
-2
ApcCacheTest.php
tests/unit/framework/caching/ApcCacheTest.php
+1
-2
DbCacheTest.php
tests/unit/framework/caching/DbCacheTest.php
+1
-2
FileCacheTest.php
tests/unit/framework/caching/FileCacheTest.php
+1
-2
MemCacheTest.php
tests/unit/framework/caching/MemCacheTest.php
+1
-2
MemCachedTest.php
tests/unit/framework/caching/MemCachedTest.php
+1
-2
WinCacheTest.php
tests/unit/framework/caching/WinCacheTest.php
+1
-2
XCacheTest.php
tests/unit/framework/caching/XCacheTest.php
+1
-2
ZendDataCacheTest.php
tests/unit/framework/caching/ZendDataCacheTest.php
+1
-2
ActiveRecordTest.php
tests/unit/framework/db/ActiveRecordTest.php
+1
-2
CommandTest.php
tests/unit/framework/db/CommandTest.php
+1
-2
QueryTest.php
tests/unit/framework/db/QueryTest.php
+1
-2
JsonTest.php
tests/unit/framework/helpers/JsonTest.php
+1
-2
StringHelperTest.php
tests/unit/framework/helpers/StringHelperTest.php
+1
-2
VarDumperTest.php
tests/unit/framework/helpers/VarDumperTest.php
+1
-2
EmailValidatorTest.php
tests/unit/framework/validators/EmailValidatorTest.php
+1
-2
main.php
tests/web/app/protected/config/main.php
+1
-2
SiteController.php
tests/web/app/protected/controllers/SiteController.php
+1
-2
index.php
tests/web/app/protected/views/site/index.php
+1
-2
No files found.
app/protected/config/assets.php
View file @
637e1160
...
@@ -16,4 +16,4 @@ return array(
...
@@ -16,4 +16,4 @@ return array(
'yii'
,
'yii'
,
),
),
),
),
);
);
\ No newline at end of file
app/protected/config/main.php
View file @
637e1160
...
@@ -18,4 +18,4 @@ return array(
...
@@ -18,4 +18,4 @@ return array(
'params'
=>
array
(
'params'
=>
array
(
'adminEmail'
=>
'admin@example.com'
,
'adminEmail'
=>
'admin@example.com'
,
),
),
);
);
\ No newline at end of file
app/protected/controllers/SiteController.php
View file @
637e1160
...
@@ -46,4 +46,4 @@ class SiteController extends Controller
...
@@ -46,4 +46,4 @@ class SiteController extends Controller
{
{
echo
$this
->
render
(
'about'
);
echo
$this
->
render
(
'about'
);
}
}
}
}
\ No newline at end of file
app/protected/models/ContactForm.php
View file @
637e1160
...
@@ -60,4 +60,4 @@ class ContactForm extends Model
...
@@ -60,4 +60,4 @@ class ContactForm extends Model
return
false
;
return
false
;
}
}
}
}
}
}
\ No newline at end of file
app/protected/models/LoginForm.php
View file @
637e1160
...
@@ -55,4 +55,4 @@ class LoginForm extends Model
...
@@ -55,4 +55,4 @@ class LoginForm extends Model
return
false
;
return
false
;
}
}
}
}
}
}
\ No newline at end of file
app/protected/models/User.php
View file @
637e1160
...
@@ -58,4 +58,4 @@ class User extends \yii\base\Object implements \yii\web\Identity
...
@@ -58,4 +58,4 @@ class User extends \yii\base\Object implements \yii\web\Identity
{
{
return
$this
->
password
===
$password
;
return
$this
->
password
===
$password
;
}
}
}
}
\ No newline at end of file
app/protected/views/layouts/main.php
View file @
637e1160
...
@@ -54,4 +54,4 @@ $this->registerAssetBundle('app');
...
@@ -54,4 +54,4 @@ $this->registerAssetBundle('app');
</div>
</div>
</body>
</body>
</html>
</html>
<?php
$this
->
endPage
();
?>
<?php
$this
->
endPage
();
?>
\ No newline at end of file
app/protected/views/site/contact.php
View file @
637e1160
...
@@ -30,4 +30,4 @@ $this->title = 'Contact';
...
@@ -30,4 +30,4 @@ $this->title = 'Contact';
<div
class=
"form-actions"
>
<div
class=
"form-actions"
>
<?php
echo
Html
::
submitButton
(
'Submit'
,
null
,
null
,
array
(
'class'
=>
'btn btn-primary'
));
?>
<?php
echo
Html
::
submitButton
(
'Submit'
,
null
,
null
,
array
(
'class'
=>
'btn btn-primary'
));
?>
</div>
</div>
<?php
$this
->
endWidget
();
?>
<?php
$this
->
endWidget
();
?>
\ No newline at end of file
app/protected/views/site/login.php
View file @
637e1160
...
@@ -18,4 +18,4 @@ $this->title = 'Login';
...
@@ -18,4 +18,4 @@ $this->title = 'Login';
<div
class=
"form-actions"
>
<div
class=
"form-actions"
>
<?php
echo
Html
::
submitButton
(
'Login'
,
null
,
null
,
array
(
'class'
=>
'btn btn-primary'
));
?>
<?php
echo
Html
::
submitButton
(
'Login'
,
null
,
null
,
array
(
'class'
=>
'btn btn-primary'
));
?>
</div>
</div>
<?php
$this
->
endWidget
();
?>
<?php
$this
->
endWidget
();
?>
\ No newline at end of file
framework/assets.php
View file @
637e1160
...
@@ -28,4 +28,4 @@ return array(
...
@@ -28,4 +28,4 @@ return array(
),
),
'depends'
=>
array
(
'yii'
,
'yii/validation'
),
'depends'
=>
array
(
'yii'
,
'yii/validation'
),
),
),
);
);
\ No newline at end of file
framework/base/ActionFilter.php
View file @
637e1160
...
@@ -87,4 +87,4 @@ class ActionFilter extends Behavior
...
@@ -87,4 +87,4 @@ class ActionFilter extends Behavior
{
{
return
!
in_array
(
$action
->
id
,
$this
->
except
,
true
)
&&
(
empty
(
$this
->
only
)
||
in_array
(
$action
->
id
,
$this
->
only
,
true
));
return
!
in_array
(
$action
->
id
,
$this
->
except
,
true
)
&&
(
empty
(
$this
->
only
)
||
in_array
(
$action
->
id
,
$this
->
only
,
true
));
}
}
}
}
\ No newline at end of file
framework/base/Exception.php
View file @
637e1160
...
@@ -22,4 +22,4 @@ class Exception extends \Exception
...
@@ -22,4 +22,4 @@ class Exception extends \Exception
{
{
return
\Yii
::
t
(
'yii|Exception'
);
return
\Yii
::
t
(
'yii|Exception'
);
}
}
}
}
\ No newline at end of file
framework/base/View.php
View file @
637e1160
...
@@ -797,4 +797,4 @@ class View extends Component
...
@@ -797,4 +797,4 @@ class View extends Component
}
}
return
implode
(
"
\n
"
,
$lines
);
return
implode
(
"
\n
"
,
$lines
);
}
}
}
}
\ No newline at end of file
framework/base/ViewEvent.php
View file @
637e1160
...
@@ -41,4 +41,4 @@ class ViewEvent extends Event
...
@@ -41,4 +41,4 @@ class ViewEvent extends Event
$this
->
viewFile
=
$viewFile
;
$this
->
viewFile
=
$viewFile
;
parent
::
__construct
(
$config
);
parent
::
__construct
(
$config
);
}
}
}
}
\ No newline at end of file
framework/base/Widget.php
View file @
637e1160
...
@@ -134,4 +134,4 @@ class Widget extends Component
...
@@ -134,4 +134,4 @@ class Widget extends Component
return
pathinfo
(
$file
,
PATHINFO_EXTENSION
)
===
''
?
$file
.
'.php'
:
$file
;
return
pathinfo
(
$file
,
PATHINFO_EXTENSION
)
===
''
?
$file
.
'.php'
:
$file
;
}
}
}
}
\ No newline at end of file
framework/caching/Cache.php
View file @
637e1160
...
@@ -349,4 +349,4 @@ abstract class Cache extends Component implements \ArrayAccess
...
@@ -349,4 +349,4 @@ abstract class Cache extends Component implements \ArrayAccess
{
{
$this
->
delete
(
$key
);
$this
->
delete
(
$key
);
}
}
}
}
\ No newline at end of file
framework/caching/Dependency.php
View file @
637e1160
...
@@ -49,4 +49,4 @@ abstract class Dependency extends \yii\base\Object
...
@@ -49,4 +49,4 @@ abstract class Dependency extends \yii\base\Object
* @return mixed the data needed to determine if dependency has been changed.
* @return mixed the data needed to determine if dependency has been changed.
*/
*/
abstract
protected
function
generateDependencyData
();
abstract
protected
function
generateDependencyData
();
}
}
\ No newline at end of file
framework/caching/MemCacheServer.php
View file @
637e1160
...
@@ -46,4 +46,4 @@ class MemCacheServer extends \yii\base\Object
...
@@ -46,4 +46,4 @@ class MemCacheServer extends \yii\base\Object
* @var boolean if the server should be flagged as online upon a failure. This is used by memcache only.
* @var boolean if the server should be flagged as online upon a failure. This is used by memcache only.
*/
*/
public
$status
=
true
;
public
$status
=
true
;
}
}
\ No newline at end of file
framework/caching/WinCache.php
View file @
637e1160
...
@@ -89,4 +89,4 @@ class WinCache extends Cache
...
@@ -89,4 +89,4 @@ class WinCache extends Cache
{
{
return
wincache_ucache_clear
();
return
wincache_ucache_clear
();
}
}
}
}
\ No newline at end of file
framework/console/Controller.php
View file @
637e1160
...
@@ -147,4 +147,4 @@ class Controller extends \yii\base\Controller
...
@@ -147,4 +147,4 @@ class Controller extends \yii\base\Controller
{
{
return
array
();
return
array
();
}
}
}
}
\ No newline at end of file
framework/console/controllers/AppController.php
View file @
637e1160
...
@@ -321,4 +321,4 @@ class AppController extends Controller
...
@@ -321,4 +321,4 @@ class AppController extends Controller
closedir
(
$handle
);
closedir
(
$handle
);
return
$list
;
return
$list
;
}
}
}
}
\ No newline at end of file
framework/console/controllers/AssetController.php
View file @
637e1160
...
@@ -350,4 +350,4 @@ return array(
...
@@ -350,4 +350,4 @@ return array(
EOD;
EOD;
file_put_contents
(
$configFile
,
$template
);
file_put_contents
(
$configFile
,
$template
);
}
}
}
}
\ No newline at end of file
framework/console/controllers/HelpController.php
View file @
637e1160
...
@@ -418,4 +418,4 @@ class HelpController extends Controller
...
@@ -418,4 +418,4 @@ class HelpController extends Controller
$name
=
$required
?
"
$name
(required)"
:
$name
;
$name
=
$required
?
"
$name
(required)"
:
$name
;
return
$doc
===
''
?
$name
:
"
$name
:
$doc
"
;
return
$doc
===
''
?
$name
:
"
$name
:
$doc
"
;
}
}
}
}
\ No newline at end of file
framework/console/webapp/config.php
View file @
637e1160
...
@@ -14,4 +14,4 @@ return array(
...
@@ -14,4 +14,4 @@ return array(
'permissions'
=>
0755
,
'permissions'
=>
0755
,
),
),
),
),
);
);
\ No newline at end of file
framework/console/webapp/default/index.php
View file @
637e1160
...
@@ -7,4 +7,4 @@ $config = require dirname(__DIR__).'/protected/config/main.php';
...
@@ -7,4 +7,4 @@ $config = require dirname(__DIR__).'/protected/config/main.php';
$config
[
'basePath'
]
=
dirname
(
__DIR__
)
.
'/protected'
;
$config
[
'basePath'
]
=
dirname
(
__DIR__
)
.
'/protected'
;
$app
=
new
\yii\web\Application
(
$config
);
$app
=
new
\yii\web\Application
(
$config
);
$app
->
run
();
$app
->
run
();
\ No newline at end of file
framework/console/webapp/default/protected/config/main.php
View file @
637e1160
...
@@ -17,4 +17,4 @@ return array(
...
@@ -17,4 +17,4 @@ return array(
'class'
=>
'yii\caching\DummyCache'
,
'class'
=>
'yii\caching\DummyCache'
,
),
),
),
),
);
);
\ No newline at end of file
framework/console/webapp/default/protected/controllers/SiteController.php
View file @
637e1160
...
@@ -12,4 +12,4 @@ class SiteController extends Controller
...
@@ -12,4 +12,4 @@ class SiteController extends Controller
'name'
=>
'Qiang'
,
'name'
=>
'Qiang'
,
));
));
}
}
}
}
\ No newline at end of file
framework/console/webapp/default/protected/views/layouts/main.php
View file @
637e1160
...
@@ -14,4 +14,4 @@
...
@@ -14,4 +14,4 @@
<?php
echo
\Yii
::
powered
()
?>
<?php
echo
\Yii
::
powered
()
?>
</div>
</div>
</body>
</body>
</html>
</html>
\ No newline at end of file
framework/console/webapp/default/protected/views/site/index.php
View file @
637e1160
Hello,
<?php
echo
$name
?>
!
Hello,
<?php
echo
$name
?>
!
\ No newline at end of file
framework/db/Exception.php
View file @
637e1160
...
@@ -41,4 +41,4 @@ class Exception extends \yii\base\Exception
...
@@ -41,4 +41,4 @@ class Exception extends \yii\base\Exception
{
{
return
\Yii
::
t
(
'yii|Database Exception'
);
return
\Yii
::
t
(
'yii|Database Exception'
);
}
}
}
}
\ No newline at end of file
framework/db/Expression.php
View file @
637e1160
...
@@ -57,4 +57,4 @@ class Expression extends \yii\base\Object
...
@@ -57,4 +57,4 @@ class Expression extends \yii\base\Object
{
{
return
$this
->
expression
;
return
$this
->
expression
;
}
}
}
}
\ No newline at end of file
framework/db/Migration.php
View file @
637e1160
...
@@ -368,4 +368,4 @@ class Migration extends \yii\base\Component
...
@@ -368,4 +368,4 @@ class Migration extends \yii\base\Component
$this
->
db
->
createCommand
()
->
dropIndex
(
$name
,
$table
)
->
execute
();
$this
->
db
->
createCommand
()
->
dropIndex
(
$name
,
$table
)
->
execute
();
echo
" done (time: "
.
sprintf
(
'%.3f'
,
microtime
(
true
)
-
$time
)
.
"s)
\n
"
;
echo
" done (time: "
.
sprintf
(
'%.3f'
,
microtime
(
true
)
-
$time
)
.
"s)
\n
"
;
}
}
}
}
\ No newline at end of file
framework/db/StaleObjectException.php
View file @
637e1160
...
@@ -20,4 +20,4 @@ class StaleObjectException extends Exception
...
@@ -20,4 +20,4 @@ class StaleObjectException extends Exception
{
{
return
\Yii
::
t
(
'yii|Stale Object Exception'
);
return
\Yii
::
t
(
'yii|Stale Object Exception'
);
}
}
}
}
\ No newline at end of file
framework/helpers/ArrayHelper.php
View file @
637e1160
...
@@ -16,4 +16,4 @@ namespace yii\helpers;
...
@@ -16,4 +16,4 @@ namespace yii\helpers;
*/
*/
class
ArrayHelper
extends
base\ArrayHelper
class
ArrayHelper
extends
base\ArrayHelper
{
{
}
}
\ No newline at end of file
framework/helpers/FileHelper.php
View file @
637e1160
...
@@ -18,4 +18,4 @@ namespace yii\helpers;
...
@@ -18,4 +18,4 @@ namespace yii\helpers;
*/
*/
class
FileHelper
extends
base\FileHelper
class
FileHelper
extends
base\FileHelper
{
{
}
}
\ No newline at end of file
framework/helpers/JsExpression.php
View file @
637e1160
...
@@ -42,4 +42,4 @@ class JsExpression extends Object
...
@@ -42,4 +42,4 @@ class JsExpression extends Object
{
{
return
$this
->
expression
;
return
$this
->
expression
;
}
}
}
}
\ No newline at end of file
framework/helpers/Json.php
View file @
637e1160
...
@@ -15,4 +15,4 @@ namespace yii\helpers;
...
@@ -15,4 +15,4 @@ namespace yii\helpers;
class
Json
extends
base\Json
class
Json
extends
base\Json
{
{
}
}
\ No newline at end of file
framework/helpers/SecurityHelper.php
View file @
637e1160
...
@@ -26,4 +26,4 @@ namespace yii\helpers;
...
@@ -26,4 +26,4 @@ namespace yii\helpers;
*/
*/
class
SecurityHelper
extends
base\SecurityHelper
class
SecurityHelper
extends
base\SecurityHelper
{
{
}
}
\ No newline at end of file
framework/helpers/VarDumper.php
View file @
637e1160
...
@@ -25,4 +25,4 @@ namespace yii\helpers;
...
@@ -25,4 +25,4 @@ namespace yii\helpers;
*/
*/
class
VarDumper
extends
base\VarDumper
class
VarDumper
extends
base\VarDumper
{
{
}
}
\ No newline at end of file
framework/helpers/base/ArrayHelper.php
View file @
637e1160
...
@@ -349,4 +349,4 @@ class ArrayHelper
...
@@ -349,4 +349,4 @@ class ArrayHelper
}
}
return
$d
;
return
$d
;
}
}
}
}
\ No newline at end of file
framework/helpers/base/FileHelper.php
View file @
637e1160
...
@@ -169,4 +169,4 @@ class FileHelper
...
@@ -169,4 +169,4 @@ class FileHelper
}
}
closedir
(
$handle
);
closedir
(
$handle
);
}
}
}
}
\ No newline at end of file
framework/helpers/base/Json.php
View file @
637e1160
...
@@ -104,4 +104,4 @@ class Json
...
@@ -104,4 +104,4 @@ class Json
return
$data
;
return
$data
;
}
}
}
}
}
}
\ No newline at end of file
framework/helpers/base/VarDumper.php
View file @
637e1160
...
@@ -131,4 +131,4 @@ class VarDumper
...
@@ -131,4 +131,4 @@ class VarDumper
break
;
break
;
}
}
}
}
}
}
\ No newline at end of file
framework/i18n/PhpMessageSource.php
View file @
637e1160
...
@@ -76,4 +76,4 @@ class PhpMessageSource extends MessageSource
...
@@ -76,4 +76,4 @@ class PhpMessageSource extends MessageSource
return
array
();
return
array
();
}
}
}
}
}
}
\ No newline at end of file
framework/i18n/data/plurals.php
View file @
637e1160
...
@@ -624,4 +624,4 @@ return array (
...
@@ -624,4 +624,4 @@ return array (
array
(
array
(
0
=>
'in_array(fmod($n,10),array(1,2))||fmod($n,20)==0'
,
0
=>
'in_array(fmod($n,10),array(1,2))||fmod($n,20)==0'
,
),
),
);
);
\ No newline at end of file
framework/logging/EmailTarget.php
View file @
637e1160
...
@@ -69,4 +69,4 @@ class EmailTarget extends Target
...
@@ -69,4 +69,4 @@ class EmailTarget extends Target
}
}
mail
(
$sentTo
,
$subject
,
$body
,
implode
(
"
\r\n
"
,
$headers
));
mail
(
$sentTo
,
$subject
,
$body
,
implode
(
"
\r\n
"
,
$headers
));
}
}
}
}
\ No newline at end of file
framework/logging/ProfileTarget.php
View file @
637e1160
...
@@ -189,4 +189,4 @@ class CProfileLogRoute extends CWebLogRoute
...
@@ -189,4 +189,4 @@ class CProfileLogRoute extends CWebLogRoute
$total
+=
$delta
;
$total
+=
$delta
;
return
array
(
$token
,
$calls
,
$min
,
$max
,
$total
);
return
array
(
$token
,
$calls
,
$min
,
$max
,
$total
);
}
}
}
}
\ No newline at end of file
framework/logging/WebTarget.php
View file @
637e1160
...
@@ -58,4 +58,4 @@ class CWebLogRoute extends CLogRoute
...
@@ -58,4 +58,4 @@ class CWebLogRoute extends CLogRoute
$viewFile
=
YII_PATH
.
DIRECTORY_SEPARATOR
.
'views'
.
DIRECTORY_SEPARATOR
.
$view
.
'.php'
;
$viewFile
=
YII_PATH
.
DIRECTORY_SEPARATOR
.
'views'
.
DIRECTORY_SEPARATOR
.
$view
.
'.php'
;
include
(
$app
->
findLocalizedFile
(
$viewFile
,
'en'
));
include
(
$app
->
findLocalizedFile
(
$viewFile
,
'en'
));
}
}
}
}
\ No newline at end of file
framework/renderers/SmartyViewRenderer.php
View file @
637e1160
...
@@ -102,4 +102,4 @@ class SmartyViewRenderer extends ViewRenderer
...
@@ -102,4 +102,4 @@ class SmartyViewRenderer extends ViewRenderer
return
$template
->
fetch
();
return
$template
->
fetch
();
}
}
}
}
\ No newline at end of file
framework/validators/InlineValidator.php
View file @
637e1160
...
@@ -96,4 +96,4 @@ class InlineValidator extends Validator
...
@@ -96,4 +96,4 @@ class InlineValidator extends Validator
return
null
;
return
null
;
}
}
}
}
}
}
\ No newline at end of file
framework/validators/NumberValidator.php
View file @
637e1160
...
@@ -151,4 +151,4 @@ class NumberValidator extends Validator
...
@@ -151,4 +151,4 @@ class NumberValidator extends Validator
return
'yii.validation.number(value, messages, '
.
Json
::
encode
(
$options
)
.
');'
;
return
'yii.validation.number(value, messages, '
.
Json
::
encode
(
$options
)
.
');'
;
}
}
}
}
\ No newline at end of file
framework/validators/UniqueValidator.php
View file @
637e1160
...
@@ -97,4 +97,4 @@ class UniqueValidator extends Validator
...
@@ -97,4 +97,4 @@ class UniqueValidator extends Validator
$this
->
addError
(
$object
,
$attribute
,
$this
->
message
);
$this
->
addError
(
$object
,
$attribute
,
$this
->
message
);
}
}
}
}
}
}
\ No newline at end of file
framework/views/error.php
View file @
637e1160
...
@@ -64,4 +64,4 @@ $title = $context->htmlEncode($exception instanceof \yii\base\Exception ? $excep
...
@@ -64,4 +64,4 @@ $title = $context->htmlEncode($exception instanceof \yii\base\Exception ? $excep
<?php
echo
YII_DEBUG
?
$context
->
versionInfo
:
''
?>
<?php
echo
YII_DEBUG
?
$context
->
versionInfo
:
''
?>
</div>
</div>
</body>
</body>
</html>
</html>
\ No newline at end of file
framework/web/AccessControl.php
View file @
637e1160
...
@@ -103,4 +103,4 @@ class AccessControl extends ActionFilter
...
@@ -103,4 +103,4 @@ class AccessControl extends ActionFilter
throw
new
HttpException
(
403
,
Yii
::
t
(
'yii|You are not allowed to perform this action.'
));
throw
new
HttpException
(
403
,
Yii
::
t
(
'yii|You are not allowed to perform this action.'
));
}
}
}
}
}
}
\ No newline at end of file
framework/web/AccessRule.php
View file @
637e1160
...
@@ -185,4 +185,4 @@ class AccessRule extends Component
...
@@ -185,4 +185,4 @@ class AccessRule extends Component
{
{
return
empty
(
$this
->
matchCallback
)
||
call_user_func
(
$this
->
matchCallback
,
$this
,
$action
);
return
empty
(
$this
->
matchCallback
)
||
call_user_func
(
$this
->
matchCallback
,
$this
,
$action
);
}
}
}
}
\ No newline at end of file
framework/web/AssetBundle.php
View file @
637e1160
...
@@ -173,4 +173,4 @@ class AssetBundle extends Object
...
@@ -173,4 +173,4 @@ class AssetBundle extends Object
}
}
}
}
}
}
}
}
\ No newline at end of file
framework/web/AssetConverter.php
View file @
637e1160
...
@@ -59,4 +59,4 @@ class AssetConverter extends Component implements IAssetConverter
...
@@ -59,4 +59,4 @@ class AssetConverter extends Component implements IAssetConverter
}
}
return
"
$baseUrl
/
$asset
"
;
return
"
$baseUrl
/
$asset
"
;
}
}
}
}
\ No newline at end of file
framework/web/Controller.php
View file @
637e1160
...
@@ -40,4 +40,4 @@ class Controller extends \yii\base\Controller
...
@@ -40,4 +40,4 @@ class Controller extends \yii\base\Controller
}
}
return
Yii
::
$app
->
getUrlManager
()
->
createUrl
(
$route
,
$params
);
return
Yii
::
$app
->
getUrlManager
()
->
createUrl
(
$route
,
$params
);
}
}
}
}
\ No newline at end of file
framework/web/HttpCache.php
View file @
637e1160
...
@@ -128,4 +128,4 @@ class HttpCache extends ActionFilter
...
@@ -128,4 +128,4 @@ class HttpCache extends ActionFilter
{
{
return
'"'
.
base64_encode
(
sha1
(
$seed
,
true
))
.
'"'
;
return
'"'
.
base64_encode
(
sha1
(
$seed
,
true
))
.
'"'
;
}
}
}
}
\ No newline at end of file
framework/web/IAssetConverter.php
View file @
637e1160
...
@@ -24,4 +24,4 @@ interface IAssetConverter
...
@@ -24,4 +24,4 @@ interface IAssetConverter
* need conversion, "$baseUrl/$asset" should be returned.
* need conversion, "$baseUrl/$asset" should be returned.
*/
*/
public
function
convert
(
$asset
,
$basePath
,
$baseUrl
);
public
function
convert
(
$asset
,
$basePath
,
$baseUrl
);
}
}
\ No newline at end of file
framework/web/Identity.php
View file @
637e1160
...
@@ -78,4 +78,4 @@ interface Identity
...
@@ -78,4 +78,4 @@ interface Identity
* @see getAuthKey()
* @see getAuthKey()
*/
*/
public
function
validateAuthKey
(
$authKey
);
public
function
validateAuthKey
(
$authKey
);
}
}
\ No newline at end of file
framework/web/PageCache.php
View file @
637e1160
...
@@ -101,4 +101,4 @@ class PageCache extends ActionFilter
...
@@ -101,4 +101,4 @@ class PageCache extends ActionFilter
{
{
$this
->
view
->
endCache
();
$this
->
view
->
endCache
();
}
}
}
}
\ No newline at end of file
framework/web/Pagination.php
View file @
637e1160
...
@@ -205,4 +205,4 @@ class Pagination extends \yii\base\Object
...
@@ -205,4 +205,4 @@ class Pagination extends \yii\base\Object
{
{
return
$this
->
pageSize
<
1
?
-
1
:
$this
->
pageSize
;
return
$this
->
pageSize
<
1
?
-
1
:
$this
->
pageSize
;
}
}
}
}
\ No newline at end of file
framework/web/Sort.php
View file @
637e1160
...
@@ -333,4 +333,4 @@ class Sort extends \yii\base\Object
...
@@ -333,4 +333,4 @@ class Sort extends \yii\base\Object
return
false
;
return
false
;
}
}
}
}
}
}
\ No newline at end of file
framework/web/UserEvent.php
View file @
637e1160
...
@@ -31,4 +31,4 @@ class UserEvent extends Event
...
@@ -31,4 +31,4 @@ class UserEvent extends Event
* This property is only meaningful for [[User::EVENT_BEFORE_LOGIN]] and [[User::EVENT_BEFORE_LOGOUT]] events.
* This property is only meaningful for [[User::EVENT_BEFORE_LOGIN]] and [[User::EVENT_BEFORE_LOGOUT]] events.
*/
*/
public
$isValid
=
true
;
public
$isValid
=
true
;
}
}
\ No newline at end of file
framework/widgets/ActiveField.php
View file @
637e1160
...
@@ -541,4 +541,4 @@ class ActiveField extends Component
...
@@ -541,4 +541,4 @@ class ActiveField extends Component
.
'</div>'
.
'</div>'
);
);
}
}
}
}
\ No newline at end of file
framework/widgets/Block.php
View file @
637e1160
...
@@ -46,4 +46,4 @@ class Block extends Widget
...
@@ -46,4 +46,4 @@ class Block extends Widget
}
}
$this
->
view
->
blocks
[
$this
->
id
]
=
$block
;
$this
->
view
->
blocks
[
$this
->
id
]
=
$block
;
}
}
}
}
\ No newline at end of file
framework/widgets/FragmentCache.php
View file @
637e1160
...
@@ -171,4 +171,4 @@ class FragmentCache extends Widget
...
@@ -171,4 +171,4 @@ class FragmentCache extends Widget
}
}
return
$this
->
cache
->
buildKey
(
$factors
);
return
$this
->
cache
->
buildKey
(
$factors
);
}
}
}
}
\ No newline at end of file
tests/unit/MysqlTestCase.php
View file @
637e1160
...
@@ -33,4 +33,4 @@ class MysqlTestCase extends TestCase
...
@@ -33,4 +33,4 @@ class MysqlTestCase extends TestCase
}
}
return
$db
;
return
$db
;
}
}
}
}
\ No newline at end of file
tests/unit/TestCase.php
View file @
637e1160
...
@@ -13,4 +13,4 @@ class TestCase extends \yii\test\TestCase
...
@@ -13,4 +13,4 @@ class TestCase extends \yii\test\TestCase
}
}
return
isset
(
self
::
$params
[
$name
])
?
self
::
$params
[
$name
]
:
null
;
return
isset
(
self
::
$params
[
$name
])
?
self
::
$params
[
$name
]
:
null
;
}
}
}
}
\ No newline at end of file
tests/unit/data/ar/ActiveRecord.php
View file @
637e1160
...
@@ -23,4 +23,4 @@ class ActiveRecord extends \yii\db\ActiveRecord
...
@@ -23,4 +23,4 @@ class ActiveRecord extends \yii\db\ActiveRecord
{
{
return
self
::
$db
;
return
self
::
$db
;
}
}
}
}
\ No newline at end of file
tests/unit/data/ar/Customer.php
View file @
637e1160
...
@@ -24,4 +24,4 @@ class Customer extends ActiveRecord
...
@@ -24,4 +24,4 @@ class Customer extends ActiveRecord
{
{
return
$query
->
andWhere
(
'status=1'
);
return
$query
->
andWhere
(
'status=1'
);
}
}
}
}
\ No newline at end of file
tests/unit/data/ar/Item.php
View file @
637e1160
...
@@ -8,4 +8,4 @@ class Item extends ActiveRecord
...
@@ -8,4 +8,4 @@ class Item extends ActiveRecord
{
{
return
'tbl_item'
;
return
'tbl_item'
;
}
}
}
}
\ No newline at end of file
tests/unit/data/ar/Order.php
View file @
637e1160
...
@@ -43,4 +43,4 @@ class Order extends ActiveRecord
...
@@ -43,4 +43,4 @@ class Order extends ActiveRecord
return
false
;
return
false
;
}
}
}
}
}
}
\ No newline at end of file
tests/unit/data/ar/OrderItem.php
View file @
637e1160
...
@@ -18,4 +18,4 @@ class OrderItem extends ActiveRecord
...
@@ -18,4 +18,4 @@ class OrderItem extends ActiveRecord
{
{
return
$this
->
hasOne
(
'Item'
,
array
(
'id'
=>
'item_id'
));
return
$this
->
hasOne
(
'Item'
,
array
(
'id'
=>
'item_id'
));
}
}
}
}
\ No newline at end of file
tests/unit/data/base/Singer.php
View file @
637e1160
...
@@ -18,4 +18,4 @@ class Singer extends Model
...
@@ -18,4 +18,4 @@ class Singer extends Model
array
(
'underscore_style'
,
'yii\validators\CaptchaValidator'
),
array
(
'underscore_style'
,
'yii\validators\CaptchaValidator'
),
);
);
}
}
}
}
\ No newline at end of file
tests/unit/framework/base/ComponentTest.php
View file @
637e1160
...
@@ -387,4 +387,4 @@ class NewComponent2 extends Component
...
@@ -387,4 +387,4 @@ class NewComponent2 extends Component
$this
->
b
=
$b
;
$this
->
b
=
$b
;
$this
->
c
=
$c
;
$this
->
c
=
$c
;
}
}
}
}
\ No newline at end of file
tests/unit/framework/base/ObjectTest.php
View file @
637e1160
...
@@ -181,4 +181,4 @@ class NewObject extends Object
...
@@ -181,4 +181,4 @@ class NewObject extends Object
{
{
return
$this
->
_items
;
return
$this
->
_items
;
}
}
}
}
\ No newline at end of file
tests/unit/framework/caching/ApcCacheTest.php
View file @
637e1160
...
@@ -26,4 +26,4 @@ class ApcCacheTest extends CacheTest
...
@@ -26,4 +26,4 @@ class ApcCacheTest extends CacheTest
}
}
return
$this
->
_cacheInstance
;
return
$this
->
_cacheInstance
;
}
}
}
}
\ No newline at end of file
tests/unit/framework/caching/DbCacheTest.php
View file @
637e1160
...
@@ -67,4 +67,4 @@ class DbCacheTest extends CacheTest
...
@@ -67,4 +67,4 @@ class DbCacheTest extends CacheTest
}
}
return
$this
->
_cacheInstance
;
return
$this
->
_cacheInstance
;
}
}
}
}
\ No newline at end of file
tests/unit/framework/caching/FileCacheTest.php
View file @
637e1160
...
@@ -22,4 +22,4 @@ class FileCacheTest extends CacheTest
...
@@ -22,4 +22,4 @@ class FileCacheTest extends CacheTest
}
}
return
$this
->
_cacheInstance
;
return
$this
->
_cacheInstance
;
}
}
}
}
\ No newline at end of file
tests/unit/framework/caching/MemCacheTest.php
View file @
637e1160
...
@@ -24,4 +24,4 @@ class MemCacheTest extends CacheTest
...
@@ -24,4 +24,4 @@ class MemCacheTest extends CacheTest
}
}
return
$this
->
_cacheInstance
;
return
$this
->
_cacheInstance
;
}
}
}
}
\ No newline at end of file
tests/unit/framework/caching/MemCachedTest.php
View file @
637e1160
...
@@ -26,4 +26,4 @@ class MemCachedTest extends CacheTest
...
@@ -26,4 +26,4 @@ class MemCachedTest extends CacheTest
}
}
return
$this
->
_cacheInstance
;
return
$this
->
_cacheInstance
;
}
}
}
}
\ No newline at end of file
tests/unit/framework/caching/WinCacheTest.php
View file @
637e1160
...
@@ -28,4 +28,4 @@ class WinCacheTest extends CacheTest
...
@@ -28,4 +28,4 @@ class WinCacheTest extends CacheTest
}
}
return
$this
->
_cacheInstance
;
return
$this
->
_cacheInstance
;
}
}
}
}
\ No newline at end of file
tests/unit/framework/caching/XCacheTest.php
View file @
637e1160
...
@@ -24,4 +24,4 @@ class XCacheTest extends CacheTest
...
@@ -24,4 +24,4 @@ class XCacheTest extends CacheTest
}
}
return
$this
->
_cacheInstance
;
return
$this
->
_cacheInstance
;
}
}
}
}
\ No newline at end of file
tests/unit/framework/caching/ZendDataCacheTest.php
View file @
637e1160
...
@@ -24,4 +24,4 @@ class ZendDataCacheTest extends CacheTest
...
@@ -24,4 +24,4 @@ class ZendDataCacheTest extends CacheTest
}
}
return
$this
->
_cacheInstance
;
return
$this
->
_cacheInstance
;
}
}
}
}
\ No newline at end of file
tests/unit/framework/db/ActiveRecordTest.php
View file @
637e1160
...
@@ -356,4 +356,4 @@ class ActiveRecordTest extends \yiiunit\MysqlTestCase
...
@@ -356,4 +356,4 @@ class ActiveRecordTest extends \yiiunit\MysqlTestCase
$customers
=
Customer
::
find
()
->
all
();
$customers
=
Customer
::
find
()
->
all
();
$this
->
assertEquals
(
0
,
count
(
$customers
));
$this
->
assertEquals
(
0
,
count
(
$customers
));
}
}
}
}
\ No newline at end of file
tests/unit/framework/db/CommandTest.php
View file @
637e1160
...
@@ -289,4 +289,4 @@ class CommandTest extends \yiiunit\MysqlTestCase
...
@@ -289,4 +289,4 @@ class CommandTest extends \yiiunit\MysqlTestCase
{
{
}
}
}
}
\ No newline at end of file
tests/unit/framework/db/QueryTest.php
View file @
637e1160
...
@@ -113,4 +113,4 @@ class QueryTest extends \yiiunit\MysqlTestCase
...
@@ -113,4 +113,4 @@ class QueryTest extends \yiiunit\MysqlTestCase
{
{
}
}
}
}
\ No newline at end of file
tests/unit/framework/helpers/JsonTest.php
View file @
637e1160
...
@@ -57,4 +57,4 @@ class JsonTest extends \yii\test\TestCase
...
@@ -57,4 +57,4 @@ class JsonTest extends \yii\test\TestCase
$this
->
setExpectedException
(
'yii\base\InvalidParamException'
);
$this
->
setExpectedException
(
'yii\base\InvalidParamException'
);
Json
::
decode
(
$json
);
Json
::
decode
(
$json
);
}
}
}
}
\ No newline at end of file
tests/unit/framework/helpers/StringHelperTest.php
View file @
637e1160
...
@@ -70,4 +70,4 @@ class StringHelperTest extends \yii\test\TestCase
...
@@ -70,4 +70,4 @@ class StringHelperTest extends \yii\test\TestCase
$this
->
assertEquals
(
'PostTag'
,
StringHelper
::
id2camel
(
'post-tag'
));
$this
->
assertEquals
(
'PostTag'
,
StringHelper
::
id2camel
(
'post-tag'
));
$this
->
assertEquals
(
'PostTag'
,
StringHelper
::
id2camel
(
'post_tag'
,
'_'
));
$this
->
assertEquals
(
'PostTag'
,
StringHelper
::
id2camel
(
'post_tag'
,
'_'
));
}
}
}
}
\ No newline at end of file
tests/unit/framework/helpers/VarDumperTest.php
View file @
637e1160
...
@@ -9,4 +9,4 @@ class VarDumperTest extends \yii\test\TestCase
...
@@ -9,4 +9,4 @@ class VarDumperTest extends \yii\test\TestCase
$obj
=
new
\StdClass
();
$obj
=
new
\StdClass
();
VarDumper
::
dump
(
$obj
);
VarDumper
::
dump
(
$obj
);
}
}
}
}
\ No newline at end of file
tests/unit/framework/validators/EmailValidatorTest.php
View file @
637e1160
...
@@ -25,4 +25,4 @@ class EmailValidatorTest extends TestCase
...
@@ -25,4 +25,4 @@ class EmailValidatorTest extends TestCase
$this
->
assertTrue
(
$validator
->
validateValue
(
'sam@rmcreative.ru'
));
$this
->
assertTrue
(
$validator
->
validateValue
(
'sam@rmcreative.ru'
));
$this
->
assertFalse
(
$validator
->
validateValue
(
'test@example.com'
));
$this
->
assertFalse
(
$validator
->
validateValue
(
'test@example.com'
));
}
}
}
}
\ No newline at end of file
tests/web/app/protected/config/main.php
View file @
637e1160
<?php
<?php
return
array
();
return
array
();
\ No newline at end of file
tests/web/app/protected/controllers/SiteController.php
View file @
637e1160
...
@@ -27,4 +27,4 @@ class DefaultController extends \yii\web\Controller
...
@@ -27,4 +27,4 @@ class DefaultController extends \yii\web\Controller
echo
Html
::
endForm
();
echo
Html
::
endForm
();
print_r
(
$_POST
);
print_r
(
$_POST
);
}
}
}
}
\ No newline at end of file
tests/web/app/protected/views/site/index.php
View file @
637e1160
...
@@ -5,4 +5,4 @@
...
@@ -5,4 +5,4 @@
* Date: 3/16/13
* Date: 3/16/13
* Time: 10:41 AM
* Time: 10:41 AM
* To change this template use File | Settings | File Templates.
* To change this template use File | Settings | File Templates.
*/
*/
\ No newline at end of file
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