$Id$
-----------------------------------------------------------------------------*/
-
+// +X2C includes
+require_once 'HTML/Common.php';
+// ~X2C
// +X2C Class 892 :MECON_HTML_Link
/**
$vars[] = urlencode($var) . '=' . urlencode($v);
}
if ($vars) {
- $val = '?' . join('&', $vars);
+ $val .= '?' . join('&', $vars);
}
+ } else {
+ $val = htmlentities($val);
}
- $attrs .= ' ' . $key . '="' . htmlentities($val) . '"';
+ $attrs .= ' ' . $key . '="' . $val . '"';
}
return "<A$attrs>" . $this->getContents() . '</A>';
}
* Set a GET variable.
*
* @param string $key Key for the GET variable.
- * @param mixed &$value Value for the variable.
+ * @param mixed $value Value for the variable.
*
* @return void
* @access public
*/
- function setGetVar($key, &$value) // ~X2C
+ function setGetVar($key, $value) // ~X2C
{
- if (is_object($value)) {
- $this->attrs[$key] =& $value;
- } else {
- $this->attrs[$key] = $value;
- }
+ $this->_getVars[$key] = $value;
}
// -X2C
* @return void
* @access public
*/
- function addContents(&$contents) // ~X2C
+ function addContents($contents) // ~X2C
{
- if (is_object($contents)) {
- $this->_contents[] =& $contents;
- } else {
- $this->_contents[] = $contents;
- }
+ $this->_contents[] = $contents;
}
// -X2C
*/
function setContents($contents) // ~X2C
{
- $this->_contents = $contents;
+ $this->_contents = array($contents);
}
// -X2C
} // -X2C Class :MECON_HTML_Link
+
?>
\ No newline at end of file