/** * Constructor. * * Does nothing. See {@link parse()} method for URL handling. */ public function __construct() { parent::__construct(''); }
public function __construct($blog_url, $api_key) { $this->blog_url = $blog_url; $this->ak_key = $api_key; $this->ak_path = sprintf($this->ak_path, $this->ak_version, '%s'); $this->ak_host = $this->ak_key . '.' . $this->base_host; parent::__construct($this->ak_host, 80); }
/** * Constructor. * * Bypass first argument of clearbricks netHttp constructor. */ public function __construct() { parent::__construct(''); $this->setUserAgent(sprintf('Dotclear/%s)', DC_VERSION)); }
/** * Constructor * * Creates a new instance. <var>$url</var> is the XML-RPC Server end point. * * @param string $url Service URL */ public function __construct($url) { if (!$this->readUrl($url, $ssl, $host, $port, $path, $user, $pass)) { return false; } parent::__construct($host, $port); $this->useSSL($ssl); $this->setAuthorization($user, $pass); $this->path = $path; $this->user_agent = 'Clearbricks XML/RPC Client'; }
/** Constructor, no parameters. */ public function __construct() { parent::__construct($this->host, 80, $this->timeout); }