JHTML
Utility class for all HTML drawing classes
Located in /joomla/html/html.php (line 23)
JHTML (Subpackage HTML)
Add a directory where JHTML should search for helpers. You may either pass a string or an array of directories.
- string $path: A path to search.
Displays a calendar control field
- string $value: The date value
- string $name: The name of the text field
- string $id: The id of the text field
- string $format: The date format
- array $attribs: Additional html attributes
Returns formated date according to current local and adds time offset
- string $date: date in an US English date format
- string $format: format optional format for strftime
- $offset
Write a <iframe></iframe> element
- string $url: The relative URL to use for the src attribute
- string $name: The target attribute to use
- array $attribs: An associative array of attributes to add
- string $noFrames: The message to display if the iframe tag is not supported
Write a <img></amg> element
- string $url: The relative or absoluete URL to use for the src attribute
- string $alt: The target attribute to use
- array $attribs: An associative array of attributes to add
Write a <a></a> element
- string $url: The relative URL to use for the href attribute
- string $text: The target attribute to use
- array $attribs: An associative array of attributes to add
Write a <script></script> element
- string $filename: The name of the script file * @param string The relative or absolute path of the script file
- boolean $path: If true, the mootools library will be loaded
- $mootools
Write a <link rel="stylesheet" style="text/css" /> element
- string $filename: The relative URL to use for the href attribute
- $path
- $attribs
Creates a tooltip with an image as button
- string $tooltip: The tip string
- string $title: The title of the tooltip
- string $image: The image for the tip, if no text is provided
- string $text: The text for the tip
- string $href: An URL that will be used to create the link
- boolean $link: depreciated
Class loader method
Additional arguments may be supplied and are passed to the sub-class. Additional include paths are also able to be specified for third-party use
- string $type: The name of helper method to load, (prefix).(class).function prefix and class are optional and can be used to load custom html helpers.




JHTML (Subpackage HTML)