-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHttp.php
41 lines (38 loc) · 1.1 KB
/
Http.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* This file is part of the Zimbra API in PHP library.
*
* © Nguyen Van Nguyen <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Zimbra\Account;
use Zimbra\Enum\RequestFormat;
use Zimbra\Soap\Client\Http as ClientHttp;
/**
* Http is a class which allows to connect Zimbra API account functions via SOAP using pecl_http extension
*
* @package Zimbra
* @category Account
* @author Nguyen Van Nguyen - [email protected]
* @copyright Copyright © 2013 by Nguyen Van Nguyen.
*/
class Http extends Base
{
/**
* Http constructor.
*
* @param string $location The Zimbra api soap location.
* @param RequestFormat $format The request format.
*/
public function __construct($location, RequestFormat $format = null)
{
parent::__construct($location);
$this->setClient(ClientHttp::instance($this->getLocation()));
if($format instanceof RequestFormat)
{
$this->getClient()->setFormat($format);
}
}
}