}
/**
+ * Sets the $raw value. This call can be chained.
+ *
+ * @param boolean The value to set for $raw.
+ *
+ * @return Horde_Url This object, to allow chaining.
+ */
+ public function setRaw($raw)
+ {
+ $this->raw = $raw;
+ return $this;
+ }
+
+ /**
* Creates the full URL string.
*
* @return string The string representation of this object.
}
if ($url instanceof Horde_Url) {
- $url2 = $url->cAdd($parameter, $value);
- $url2->raw = !$encode;
- return $url2;
+ return $url->cAdd($parameter, $value)->setRaw(!$encode);
}
$horde_url = new Horde_Url($url, !$encode);