Пример #1
0
 public function _request($path, $method, $data = null, $headers = false)
 {
     if ($this->output_type == 'json') {
         return parent::_request($path, $method, $data, "Accept:application/json");
     } else {
         return parent::_request($path, $method, $data, "Accept:application/xml");
     }
 }
Пример #2
0
 /**
  * Open311 Class Destructor.
  */
 public function __destruct()
 {
     parent::__destruct();
 }
Пример #3
0
 public function _request($path,$method,$data=NULL){
         if ($this->output_type == 'json')
                 return parent::_request($path,$method,$data,"Accept:application/json");
         else
                 return parent::_request($path,$method,$data,"Accept:application/xml");
 }
Пример #4
0
	public function __construct($url=NULL)
	{
		parent::new_request(($url?$url:self::$api_url));
	}
   public function __construct($url=NULL,$outputType=NULL)
        {
	        if($outputType == NULL) $this->output_type = 'xml';

                parent::new_request(($url?$url:self::$api_url));
		}