COutputEvent.php 883 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * COutputEvent class file.
  4. *
  5. * @author Qiang Xue <qiang.xue@gmail.com>
  6. * @link http://www.yiiframework.com/
  7. * @copyright 2008-2013 Yii Software LLC
  8. * @license http://www.yiiframework.com/license/
  9. */
  10. /**
  11. * COutputEvent represents the parameter for events related with output handling.
  12. *
  13. * An event handler may retrieve the captured {@link output} for further processing.
  14. *
  15. * @author Qiang Xue <qiang.xue@gmail.com>
  16. * @package system.web
  17. * @since 1.0
  18. */
  19. class COutputEvent extends CEvent
  20. {
  21. /**
  22. * @var string the output to be processed. The processed output should be stored back to this property.
  23. */
  24. public $output;
  25. /**
  26. * Constructor.
  27. * @param mixed $sender sender of the event
  28. * @param string $output the output to be processed
  29. */
  30. public function __construct($sender,$output)
  31. {
  32. parent::__construct($sender);
  33. $this->output=$output;
  34. }
  35. }