|
|
|
@ -77,7 +77,7 @@ class HTML_Common |
|
|
|
|
* @param int $tabOffset Indent offset in tabs |
|
|
|
|
* @access public |
|
|
|
|
*/ |
|
|
|
|
function HTML_Common($attributes = null, $tabOffset = 0) |
|
|
|
|
public function HTML_Common($attributes = null, $tabOffset = 0) |
|
|
|
|
{ |
|
|
|
|
$this->setAttributes($attributes); |
|
|
|
|
$this->setTabOffset($tabOffset); |
|
|
|
@ -134,7 +134,7 @@ class HTML_Common |
|
|
|
|
* @return string |
|
|
|
|
* @access private |
|
|
|
|
*/ |
|
|
|
|
function _getAttrString($attributes) |
|
|
|
|
public function _getAttrString($attributes) |
|
|
|
|
{ |
|
|
|
|
$strAttr = ''; |
|
|
|
|
|
|
|
|
@ -143,16 +143,15 @@ class HTML_Common |
|
|
|
|
foreach ($attributes as $key => $value) { |
|
|
|
|
// Modified by Ivan Tcholakov, 16-MAR-2010 |
|
|
|
|
$value = @htmlspecialchars($value, ENT_COMPAT, $charset); |
|
|
|
|
$strAttr .= ' ' . $key . ' = "' . $value. '"'; |
|
|
|
|
$strAttr .= ' ' . $key . '= "' . $value. '"'; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return $strAttr; |
|
|
|
|
} // end func _getAttrString |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Returns a valid atrributes array from either a string or array |
|
|
|
|
* @param mixed $attributes Either a typical HTML attribute string or an associative array |
|
|
|
|
* Returns a valid attributes array from either a string or array |
|
|
|
|
* @param mixed $attributes Either a typical HTML attribute string or an associative array |
|
|
|
|
* @access private |
|
|
|
|
* @return array |
|
|
|
|
*/ |
|
|
|
@ -470,5 +469,4 @@ class HTML_Common |
|
|
|
|
} |
|
|
|
|
return $charset; |
|
|
|
|
} // end func charset |
|
|
|
|
} // end class HTML_Common |
|
|
|
|
?> |
|
|
|
|
} |
|
|
|
|