Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

Response.php 1000B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * @link http://www.yiiframework.com/
  4. * @copyright Copyright (c) 2008 Yii Software LLC
  5. * @license http://www.yiiframework.com/license/
  6. */
  7. namespace yii\base;
  8. /**
  9. * Response represents the response of an [[Application]] to a [[Request]].
  10. *
  11. * @author Qiang Xue <qiang.xue@gmail.com>
  12. * @since 2.0
  13. */
  14. class Response extends Component
  15. {
  16. /**
  17. * @var integer the exit status. Exit statuses should be in the range 0 to 254.
  18. * The status 0 means the program terminates successfully.
  19. */
  20. public $exitStatus = 0;
  21. /**
  22. * Sends the response to client.
  23. */
  24. public function send()
  25. {
  26. }
  27. /**
  28. * Removes all existing output buffers.
  29. */
  30. public function clearOutputBuffers()
  31. {
  32. // the following manual level counting is to deal with zlib.output_compression set to On
  33. for ($level = ob_get_level(); $level > 0; --$level) {
  34. if (!@ob_end_clean()) {
  35. ob_clean();
  36. }
  37. }
  38. }
  39. }