[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/libraries/joomla/html/ -> html.php (summary)

(no description)

Copyright: Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
License: GNU/GPL, see LICENSE.php
Version: $Id: html.php 14401 2010-01-26 14:10:00Z louis $
File Size: 332 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

JHTML:: (10 methods):
  _()
  link()
  image()
  iframe()
  script()
  stylesheet()
  date()
  tooltip()
  calendar()
  addIncludePath()


Class: JHTML  - X-Ref

Utility class for all HTML drawing classes

_( $type )   X-Ref
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

param: string    The name of helper method to load, (prefix).(class).function

link($url, $text, $attribs = null)   X-Ref
Write a <a></a> element

param: string     The relative URL to use for the href attribute
param: string    The target attribute to use
param: array    An associative array of attributes to add

image($url, $alt, $attribs = null)   X-Ref
Write a <img></amg> element

param: string     The relative or absoluete URL to use for the src attribute
param: string    The target attribute to use
param: array    An associative array of attributes to add

iframe( $url, $name, $attribs = null, $noFrames = '' )   X-Ref
Write a <iframe></iframe> element

param: string     The relative URL to use for the src attribute
param: string    The target attribute to use
param: array    An associative array of attributes to add
param: string    The message to display if the iframe tag is not supported

script($filename, $path = 'media/system/js/', $mootools = true)   X-Ref
Write a <script></script> element

param: string     The name of the script file
param: boolean If true, the mootools library will be loaded

stylesheet($filename, $path = 'media/system/css/', $attribs = array()   X-Ref
Write a <link rel="stylesheet" style="text/css" /> element

param: string     The relative URL to use for the href attribute

date($date, $format = null, $offset = NULL)   X-Ref
Returns formated date according to current local and adds time offset

returns: string    formated date
param: string    date in an US English date format
param: string    format optional format for strftime

tooltip($tooltip, $title='', $image='tooltip.png', $text='', $href='', $link=1)   X-Ref
Creates a tooltip with an image as button

param: string    $tooltip The tip string
param: string    $title The title of the tooltip
param: string    $image The image for the tip, if no text is provided
param: string    $text The text for the tip
param: string    $href An URL that will be used to create the link
param: boolean depreciated
return: string

calendar($value, $name, $id, $format = '%Y-%m-%d', $attribs = null)   X-Ref
Displays a calendar control field

param: string    The date value
param: string    The name of the text field
param: string    The id of the text field
param: string    The date format
param: array    Additional html attributes

addIncludePath( $path='' )   X-Ref
Add a directory where JHTML should search for helpers. You may
either pass a string or an array of directories.

param: string    A path to search.
return: array    An array with directory elements



Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1