diff options
Diffstat (limited to 'framework/web/COutputEvent.php')
| -rw-r--r-- | framework/web/COutputEvent.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/framework/web/COutputEvent.php b/framework/web/COutputEvent.php new file mode 100644 index 0000000..08c2327 --- /dev/null +++ b/framework/web/COutputEvent.php @@ -0,0 +1,38 @@ +<?php +/** + * COutputEvent class file. + * + * @author Qiang Xue <qiang.xue@gmail.com> + * @link http://www.yiiframework.com/ + * @copyright Copyright © 2008-2011 Yii Software LLC + * @license http://www.yiiframework.com/license/ + */ + +/** + * COutputEvent represents the parameter for events related with output handling. + * + * An event handler may retrieve the captured {@link output} for further processing. + * + * @author Qiang Xue <qiang.xue@gmail.com> + * @version $Id: COutputEvent.php 2799 2011-01-01 19:31:13Z qiang.xue $ + * @package system.web + * @since 1.0 + */ +class COutputEvent extends CEvent +{ + /** + * @var string the output to be processed. The processed output should be stored back to this property. + */ + public $output; + + /** + * Constructor. + * @param mixed $sender sender of the event + * @param string $output the output to be processed + */ + public function __construct($sender,$output) + { + parent::__construct($sender); + $this->output=$output; + } +} |
