[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/HTML/Helpers/ -> ListHelper.php (summary)

Joomla! Content Management System

Copyright: (C) 2007 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 274 lines (9 kb)
Included or required:0 times
Referenced: 2 times
Includes or requires: 0 files

Defines 5 functions

  images()
  genericordering()
  ordering()
  users()
  positions()

Functions
Functions that are not part of a class:

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($query, $chop = 30)   X-Ref
Returns an array of options

param: DatabaseQuery|string   $query  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

ordering($name, $query, $attribs = null, $selected = null, $neworder = null, ?string $id = 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   $id        ID attribute for the resulting <select> element
return: string   HTML markup for the select list

users($name, $active, $nouser = 0, $javascript = null, $order = 'name')   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
return: string   The HTML for a list of users list of users

positions($name,$active = null,$javascript = null,$none = true,$center = true,$left = true,$right = true,$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



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer