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
2390da8c
Commit
2390da8c
authored
Jul 17, 2011
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
w
parent
1c8f8f42
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
17 deletions
+28
-17
Behavior.php
framework/base/Behavior.php
+9
-1
Component.php
framework/base/Component.php
+0
-0
Event.php
framework/base/Event.php
+15
-9
Exception.php
framework/base/Exception.php
+4
-7
No files found.
framework/base/Behavior.php
View file @
2390da8c
<?php
<?php
/**
* Behavior class file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright Copyright © 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace
yii\base
;
namespace
yii\base
;
class
CBehavior
extends
CComponent
implements
IBehavior
class
Behavior
extends
Component
{
{
private
$_enabled
;
private
$_enabled
;
private
$_owner
;
private
$_owner
;
...
...
framework/base/Component.php
View file @
2390da8c
This diff is collapsed.
Click to expand it.
framework/base/Event.php
View file @
2390da8c
<?php
<?php
/**
* Event class file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright Copyright © 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace
yii\base
;
namespace
yii\base
;
...
@@ -6,15 +14,13 @@ namespace yii\base;
...
@@ -6,15 +14,13 @@ namespace yii\base;
* Event is the base class for all event classes.
* Event is the base class for all event classes.
*
*
* It encapsulates the parameters associated with an event.
* It encapsulates the parameters associated with an event.
* The
{@link sender}
property describes who raises the event.
* The
[[sender]]
property describes who raises the event.
* And the
{@link handled}
property indicates if the event is handled.
* And the
[[handled]]
property indicates if the event is handled.
* If an event handler sets
{@link handled} to true, those handlers
* If an event handler sets
[[handled]] to be true, the rest of the
*
that are not invoked yet will not be invoked anymore
.
*
uninvoked handlers will be canceled
.
*
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @author Qiang Xue <qiang.xue@gmail.com>
* @version $Id: CComponent.php 3001 2011-02-24 16:42:44Z alexander.makarow $
* @since 2.0
* @package system.base
* @since 1.0
*/
*/
class
Event
extends
Component
class
Event
extends
Component
{
{
...
@@ -24,7 +30,7 @@ class Event extends Component
...
@@ -24,7 +30,7 @@ class Event extends Component
public
$sender
;
public
$sender
;
/**
/**
* @var boolean whether the event is handled. Defaults to false.
* @var boolean whether the event is handled. Defaults to false.
* When a handler sets this t
rue, the rest of the uninvoked event handlers will not be invoked anymore
.
* When a handler sets this t
o be true, the rest of the uninvoked event handlers will be canceled
.
*/
*/
public
$handled
=
false
;
public
$handled
=
false
;
...
@@ -34,6 +40,6 @@ class Event extends Component
...
@@ -34,6 +40,6 @@ class Event extends Component
*/
*/
public
function
__construct
(
$sender
=
null
)
public
function
__construct
(
$sender
=
null
)
{
{
$this
->
sender
=
$sender
;
$this
->
sender
=
$sender
;
}
}
}
}
framework/base/Exception.php
View file @
2390da8c
<?php
<?php
namespace
yii\base
;
/**
/**
* Exception class file.
* Exception class file.
*
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @link http://www.yiiframework.com/
* @copyright Copyright © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
Yii Software LLC
* @license http://www.yiiframework.com/license/
* @license http://www.yiiframework.com/license/
*/
*/
namespace
yii\base
;
/**
/**
* Exception represents a generic exception for all purposes.
* Exception represents a generic exception for all purposes.
*
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @author Qiang Xue <qiang.xue@gmail.com>
* @version $Id: CException.php 2799 2011-01-01 19:31:13Z qiang.xue $
* @since 2.0
* @package system.base
* @since 1.0
*/
*/
class
Exception
extends
\Exception
class
Exception
extends
\Exception
{
{
...
...
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