*/
function updateGetVars($vars)
{
- $this->_getVars += $vars;
+ foreach ($vars as $key => $value)
+ {
+ $this->_getVars[$key] = $value;
+ }
}
/**
* Adds contents to the link.
*
* @param mixed &$contents Contents to add. Can be an object with a toHtml() method.
+ * @param bool $front Tells where to put the new content.
*
* @return void
* @access public
*/
- function addContents($contents)
+ function addContents($contents, $front = false)
{
- $this->_contents[] = $contents;
+ if ($front) {
+ array_unshift($this->_contents, $contents);
+ }
+ else {
+ $this->_contents[] = $contents;
+ }
}
/**