JHTML
Description
Utility class for all HTML drawing classes
Located in /joomla/html/html.php (line 23)
JHTML (Subpackage HTML)
Method Summary
Methods
Add a directory where JHTML should search for helpers. You may either pass a string or an array of directories.
array
addIncludePath
([string $path = ''])
- string $path: A path to search.
Displays a calendar control field
void
calendar
(string $value, string $name, string $id, [string $format = '%Y-%m-%d'], [array $attribs = null])
- 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
(string $date, [string $format = null], [ $offset = NULL])
- string $date: date in an US English date format
- string $format: format optional format for strftime
- $offset
Write a <iframe></iframe> element
void
iframe
(string $url, string $name, [array $attribs = null], [string $noFrames = ''])
- 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
void
image
(string $url, string $alt, [array $attribs = null])
- 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
void
link
(string $url, string $text, [array $attribs = null])
- 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
void
script
(string $filename, [boolean $path = 'media/system/js/'], [ $mootools = true])
- 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
void
stylesheet
(string $filename, [ $path = 'media/system/css/'], [ $attribs = array()])
- string $filename: The relative URL to use for the href attribute
- $path
- $attribs
Creates a tooltip with an image as button
string
tooltip
(string $tooltip, [string $title = ''], [string $image = 'tooltip.png'], [string $text = ''], [string $href = ''], [boolean $link = 1])
- 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
void
_
(string $type)
- 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.
Documentation generated on Fri, 01 May 2009 14:05:54 +0100 by phpDocumentor 1.3.1



JHTML (Subpackage HTML)