Hprose\Client::__construct PHP Method

__construct() public method

public __construct ( $uriList = null, $async = true )
    public function __construct($uriList = null, $async = true)
    {
        parent::__construct();
        if ($uriList != null) {
            $this->setUriList($uriList);
            if (is_bool($uriList)) {
                $async = $uriList;
            }
        }
        $this->async = $async;
    }

Usage Example

コード例 #1
0
ファイル: Client.php プロジェクト: wanggeopens/own-libs
 public function __construct($uris = null, $async = true)
 {
     parent::__construct($uris, $async);
     $this->header = array('Content-type' => 'application/hprose');
     $this->options = array(CURLOPT_SSL_VERIFYPEER => false, CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4, CURLOPT_HEADER => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_NOSIGNAL => 1);
     if (!$async) {
         $this->curl = curl_init();
     }
     $curl_version = curl_version();
     $this->curlVersionLittleThan720 = 1 == version_compare('7.20.0', $curl_version['version']);
 }
All Usage Examples Of Hprose\Client::__construct