TYPO3 CMS  TYPO3_6-2
StatusException.php
Go to the documentation of this file.
1 <?php
3 
22 
26  protected $statusHeaders;
27 
31  protected $title = 'Oops, an error occurred!';
32 
41  public function __construct($statusHeaders, $message, $title = '', $code = 0) {
42  if (is_array($statusHeaders)) {
43  $this->statusHeaders = $statusHeaders;
44  } else {
45  $this->statusHeaders = array($statusHeaders);
46  }
47  $this->title = $title ?: $this->title;
48  parent::__construct($message, $code);
49  }
50 
57  public function setTitle($title) {
58  $this->title = $title;
59  }
60 
66  public function getTitle() {
67  return $this->title;
68  }
69 
75  public function getStatusHeaders() {
76  return $this->statusHeaders;
77  }
78 
79 }
__construct($statusHeaders, $message, $title='', $code=0)