function __construct($query = false, $content_type = false) { $this->content_type = $content_type; if (is_string($query)) { $this->body = $query; parent::__construct(); } else { parent::__construct($query); } }
/** * Starts empty. * @param array $query Hash of parameters. * Multiple values are * as lists on a single key. * @access public */ function __construct($query = false) { if (is_array($query) and $this->hasMoreThanOneLevel($query)) { $query = $this->rewriteArrayWithMultipleLevels($query); } parent::__construct($query); }
/** * Starts empty. * @param array $query Hash of parameters. * Multiple values are * as lists on a single key. * @access public */ function __construct($query = false) { parent::__construct($query); }