nyroFwk  0.2
response.class.php
Go to the documentation of this file.
1 <?php
10 final class response {
11 
17  private static $inst;
18 
24  private static $proxy;
25 
31  public static function getInstance() {
32  if (self::$proxy)
33  return self::$proxy;
34  if (!self::$inst) {
35  self::$inst = factory::get('response_'.request::getResponseName());
36  self::$inst->setContentType(request::get('out'));
37  }
38  return self::$inst;
39  }
40 
46  public static function setProxy($proxy) {
47  self::$proxy = $proxy;
48  }
49 
55  public static function getProxy() {
56  return self::$proxy;
57  }
58 
62  public static function clearProxy() {
63  self::$proxy = null;
64  }
65 }
static get($get=null)
static getResponseName()
static $proxy
static setProxy($proxy)
static clearProxy()
static getProxy()
static getInstance()
static get($className, array $cfg=array())
static $inst
Generated on Sun Oct 15 2017 22:25:20 for nyroFwk by doxygen 1.8.13