Exemple #1
0
 /**
  * Constructor.
  *
  * @param   JRegistry        $options    Client options object. If the registry contains any headers.* elements,
  *                                       these will be added to the request headers.
  * @param   BDHttpTransport  $transport  The HTTP transport object.
  *
  * @since   1.0
  */
 public function __construct(JRegistry $options = null, BDHttpTransport $transport = null)
 {
     $this->options = isset($options) ? $options : new JRegistry();
     $this->transport = isset($transport) ? $transport : BDHttpFactory::getAvailableDriver($this->options);
 }