/**
  * Constructor, sets up transport ready for use.
  *
  * @param string $url
  * @param int $timeout
  * @param bool $autoLogout
  * @param bool $followRedirects
  * @param null $proxy
  */
 public function __construct($url, $timeout = 10, $autoLogout = true, $followRedirects = true, $proxy = null)
 {
     $this->errorControl =& Factory::getErrorControl();
     $this->url = $url;
     $this->autoLogout = $autoLogout;
     $this->followRedirects = $followRedirects;
     $this->proxy = $proxy;
     $this->timeout = $timeout;
 }
Example #2
0
 /**
  * Sets session object.
  *
  * @param $session
  * @return mixed
  */
 public function setSession($session)
 {
     $this->session = $session;
     $this->ociBuilder = Factory::getBuilder($this->session->getSessionId());
     return $session;
 }