Joomla! 1.5 API

Packages

Package: Joomla-Framework

License

Content on this site is copyright © 2005 - 2011 Open Source Matters Inc and can be used in accordance with the Joomla! Electronic Documentation License. Some parts of this website may be subject to other licenses.

 Class JHTMLList

Description

Utility class for creating different select lists

  • since: 1.5

Located in /joomla/html/html/list.php (line 26)

Class JHTMLList   (Subpackage HTML)
Method Summary
Method void accesslevel ( &$row)
Method void category ( $name,  $section, [ $active = NULL], [ $javascript = NULL], [ $order = 'ordering'], [ $size = 1], [ $sel_cat = 1])
Method void genericordering (string $sql, [integer $chop = '30'])
Method void images ( $name, [ $active = NULL], [ $javascript = NULL], [ $directory = NULL], [ $extensions = "bmp|gif|jpg|png"])
Method void positions ( $name, [ $active = NULL], [ $javascript = NULL], [ $none = 1], [ $center = 1], [ $left = 1], [ $right = 1], [ $id = false])
Method void section ( $name, [ $active = NULL], [ $javascript = NULL], [ $order = 'ordering'], [ $uncategorized = true], [ $scope = 'content'])
Method void specificordering ( &$row,  $id,  $query, [ $neworder = 0])
Method void users ( $name,  $active, [ $nouser = 0], [ $javascript = NULL], [ $order = 'name'], [ $reg = 1])
Methods
accesslevel (line 31)

Build the select list for access level

void accesslevel ( &$row)
  • &$row
category (line 188)

Select list of active categories for components

void category ( $name,  $section, [ $active = NULL], [ $javascript = NULL], [ $order = 'ordering'], [ $size = 1], [ $sel_cat = 1])
  • $name
  • $section
  • $active
  • $javascript
  • $order
  • $size
  • $sel_cat
genericordering (line 79)

Description

  • since: 1.5
void genericordering (string $sql, [integer $chop = '30'])
  • string $sql: SQL with ordering As value and 'name field' AS text
  • integer $chop: The length of the truncated headline
images (line 49)

Build the select list to choose an image

void images ( $name, [ $active = NULL], [ $javascript = NULL], [ $directory = NULL], [ $extensions = "bmp|gif|jpg|png"])
  • $name
  • $active
  • $javascript
  • $directory
  • $extensions
positions (line 165)

Select list of positions - generally used for location of images

void positions ( $name, [ $active = NULL], [ $javascript = NULL], [ $none = 1], [ $center = 1], [ $left = 1], [ $right = 1], [ $id = false])
  • $name
  • $active
  • $javascript
  • $none
  • $center
  • $left
  • $right
  • $id
section (line 213)

Select list of active sections

void section ( $name, [ $active = NULL], [ $javascript = NULL], [ $order = 'ordering'], [ $uncategorized = true], [ $scope = 'content'])
  • $name
  • $active
  • $javascript
  • $order
  • $uncategorized
  • $scope
specificordering (line 112)

Build the select list for Ordering of a specified Table

void specificordering ( &$row,  $id,  $query,  $neworder)
  • &$row
  • $id
  • $query
  • $neworder
users (line 133)

Select list of active users

void users ( $name,  $active,  $nouser, [ $javascript = NULL], [ $order = 'name'], [ $reg = 1])
  • $name
  • $active
  • $nouser
  • $javascript
  • $order
  • $reg
Support Joomla!