Commit 2390da8c by Qiang Xue

w

parent 1c8f8f42
<?php <?php
/**
* Behavior class file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright Copyright &copy; 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;
......
<?php <?php
/**
* Event class file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright Copyright &copy; 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 true, the rest of the uninvoked event handlers will not be invoked anymore. * When a handler sets this to 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;
} }
} }
<?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 &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 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
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment