[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

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

(no description)

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

Defines 1 class

JHTMLSelect:: (7 methods):
  option()
  optgroup()
  options()
  genericlist()
  integerlist()
  radiolist()
  booleanlist()


Class: JHTMLSelect  - X-Ref

Utility class for creating HTML select lists

option( $value, $text='', $value_name='value', $text_name='text', $disable=false )   X-Ref

param: string    The value of the option
param: string    The text for the option
param: string    The returned object property name for the value
param: string    The returned object property name for the text
return: object

optgroup( $text, $value_name = 'value', $text_name = 'text' )   X-Ref

param: string    The text for the option
param: string    The returned object property name for the value
param: string    The returned object property name for the text
return: object

options( $arr, $key = 'value', $text = 'text', $selected = null, $translate = false )   X-Ref
Generates just the option tags for an HTML select list

returns: string    HTML for the select list
param: array    An array of objects
param: string    The name of the object variable for the option value
param: string    The name of the object variable for the option text
param: mixed    The key that is selected (accepts an array or a string)

genericlist( $arr, $name, $attribs = null, $key = 'value', $text = 'text', $selected = NULL, $idtag = false, $translate = false )   X-Ref
Generates an HTML select list

returns: string    HTML for the select list
param: array    An array of objects
param: string    The value of the HTML name attribute
param: string    Additional HTML attributes for the <select> tag
param: string    The name of the object variable for the option value
param: string    The name of the object variable for the option text
param: mixed    The key that is selected (accepts an array or a string)

integerlist( $start, $end, $inc, $name, $attribs = null, $selected = null, $format = "" )   X-Ref
Generates a select list of integers

returns: string HTML for the select list
param: int The start integer
param: int The end integer
param: int The increment
param: string The value of the HTML name attribute
param: string Additional HTML attributes for the <select> tag
param: mixed The key that is selected
param: string The printf format to be applied to the number

radiolist( $arr, $name, $attribs = null, $key = 'value', $text = 'text', $selected = null, $idtag = false, $translate = false )   X-Ref
Generates an HTML radio list

returns: string HTML for the select list
param: array An array of objects
param: string The value of the HTML name attribute
param: string Additional HTML attributes for the <select> tag
param: mixed The key that is selected
param: string The name of the object variable for the option value
param: string The name of the object variable for the option text

booleanlist( $name, $attribs = null, $selected = null, $yes='yes', $no='no', $id=false )   X-Ref
Generates a yes/no radio list

returns: string HTML for the radio list
param: string The value of the HTML name attribute
param: string Additional HTML attributes for the <select> tag
param: mixed The key that is selected



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