TYPO3 CMS  TYPO3_6-2
Exception.php
Go to the documentation of this file.
1 <?php
2 namespace TYPO3\Flow;
3 
4 /* *
5  * This script belongs to the TYPO3 Flow framework. *
6  * *
7  * It is free software; you can redistribute it and/or modify it under *
8  * the terms of the GNU Lesser General Public License, either version 3 *
9  * of the License, or (at your option) any later version. *
10  * *
11  * The TYPO3 project - inspiring people to share! *
12  * */
13 
20 
24  protected $referenceCode;
25 
29  protected $statusCode = 500;
30 
38  public function getReferenceCode() {
39  if (!isset($this->referenceCode)) {
40  $this->referenceCode = date('YmdHis', $_SERVER['REQUEST_TIME']) . substr(md5(rand()), 0, 6);
41  }
42  return $this->referenceCode;
43  }
44 
51  public function getStatusCode() {
52  return $this->statusCode;
53  }
54 }
55 
56 ?>