[ Index ]

PHP Cross Reference of Joomla 2.5.4 DE

title

Body

[close]

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

(no description)

Copyright: Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 369 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 8 functions

  accesslevel()
  images()
  genericordering()
  specificordering()
  ordering()
  users()
  positions()
  category()

Functions
Functions that are not part of a class:

accesslevel(&$row)   X-Ref
Get a grouped list of pre-Joomla 1.6 access levels

param: object  &$row  The object (must have an access property).
return: string

images($name, $active = null, $javascript = null, $directory = null, $extensions = "bmp|gif|jpg|png")   X-Ref
Build the select list to choose an image

param: string  $name        The name of the field
param: string  $active      The selected item
param: string  $javascript  Alternative javascript
param: string  $directory   Directory the images are stored in
param: string  $extensions  Allowed extensions
return: array  Image names

genericordering($sql, $chop = '30')   X-Ref
Returns an array of options

param: string   $sql      SQL with 'ordering' AS value and 'name field' AS text
param: integer  $chop  The length of the truncated headline
return: array  An array of objects formatted for JHtml list processing

specificordering($value, $id, $query, $neworder = 0)   X-Ref
Build a select list with a specific ordering

param: integer  $value     The scalar value
param: integer  $id        The id for an existing item in the list
param: string   $query     The query
param: integer  $neworder  1 if new and first, -1 if new and last,
return: string  Html for the ordered list

ordering($name, $query, $attribs = null, $selected = null, $neworder = null, $chop = null)   X-Ref
Build the select list for Ordering derived from a query

param: integer  $name      The scalar value
param: string   $query     The query
param: string   $attribs   HTML tag attributes
param: string   $selected  The selected item
param: integer  $neworder  1 if new and first, -1 if new and last, 0  or null if existing item
param: string   $chop      The length of the truncated headline
return: string   Html for the select list

users($name, $active, $nouser = 0, $javascript = null, $order = 'name', $reg = 1)   X-Ref
Select list of active users

param: string   $name        The name of the field
param: string   $active      The active user
param: integer  $nouser      If set include an option to select no user
param: string   $javascript  Custom javascript
param: string   $order       Specify a field to order by
param: string   $reg         Deprecated  Excludes users who are explicitly in group 2.
return: string   The HTML for a list of users list of users

positions($name, $active = null, $javascript = null, $none = 1, $center = 1, $left = 1, $right = 1, $id = false)   X-Ref
Select list of positions - generally used for location of images

param: string   $name        Name of the field
param: string   $active      The active value
param: string   $javascript  Alternative javascript
param: boolean  $none        Null if not assigned
param: boolean  $center      Null if not assigned
param: boolean  $left        Null if not assigned
param: boolean  $right       Null if not assigned
param: boolean  $id          Null if not assigned
return: array  The positions

category($name, $extension, $selected = null, $javascript = null, $order = null, $size = 1, $sel_cat = 1)   X-Ref
Crates a select list of categories

param: string   $name        Name of the field
param: string   $extension   Extension for which the categories will be listed
param: string   $selected    Selected value
param: string   $javascript  Custom javascript
param: integer  $order       Not used.
param: integer  $size        Size of the field
param: boolean  $sel_cat     If null do not include a Select Categories row
return: string



Generated: Tue Apr 3 11:40:28 2012 Cross-referenced by PHPXref 0.7.1