* @return void
* @access public
*/
- function HTML_Image($src = '', $alt = '', $attrs = array())// ~X2C
+ function HTML_Image($src = '', $alt = '', $attrs = array('border' => 0))// ~X2C
{
- $attrs['src'] = $src;
- $attrs['alt'] = $alt;
+ if (is_array($attrs)) {
+ $attrs['src'] = $src;
+ $attrs['alt'] = $alt;
+ } else {
+ $attrs .= " src=$src alt=$alt";
+ }
parent::HTML_Common($attrs);
}
// -X2C
*/
function setSrc($src)// ~X2C
{
- $this->updateAttributes('src' => $src);
+ $this->updateAttributes(array('src' => $src));
}
// -X2C
*/
function setAlt($alt)// ~X2C
{
- $this->updateAttributes('alt' => $alt);
+ $this->updateAttributes(array('alt' => $alt));
}
// -X2C