Example #1
0
 /**
  * 
  * @return type
  */
 public static function getHttpAdapter()
 {
     if (!self::$instance) {
         self::$instance = new JchPlatformHttp();
     }
     return self::$instance;
 }
Example #2
0
 /**
  * 
  */
 private function getHttpAdapter()
 {
     if (is_null(self::$oHttpAdapter)) {
         self::$oHttpAdapter = JchPlatformHttp::getHttpAdapter();
     }
     return self::$oHttpAdapter;
 }
Example #3
0
 /**
  * 
  */
 protected function __construct()
 {
     $this->oHttpAdapter = JchPlatformHttp::getHttpAdapter();
 }