COutputEvent.php
917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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$
* @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;
}
}