Returns an array of options
static array
genericordering
(string $query, [integer $chop = 30])
-
string
$query: SQL with 'ordering' AS value and 'name field' AS text
-
integer
$chop: The length of the truncated headline
Build the select list to choose an image
static array
images
(string $name, [string $active = null], [string $javascript = null], [string $directory = null], [string $extensions = "bmp|gif|jpg|png"])
-
string
$name: The name of the field
-
string
$active: The selected item
-
string
$javascript: Alternative javascript
-
string
$directory: Directory the images are stored in
-
string
$extensions: Allowed extensions
Build the select list for Ordering derived from a query
static string
ordering
(integer $name, string $query, [string $attribs = null], [string $selected = null], [integer $neworder = null])
-
integer
$name: The scalar value
-
string
$query: The query
-
string
$attribs: HTML tag attributes
-
string
$selected: The selected item
-
integer
$neworder:
- if new and first, -1 if new and last, 0 or null if existing item
Select list of positions - generally used for location of images
static array
positions
(string $name, [string $active = null], [string $javascript = null], [boolean $none = true], [boolean $center = true], [boolean $left = true], [boolean $right = true], [boolean $id = false])
-
string
$name: Name of the field
-
string
$active: The active value
-
string
$javascript: Alternative javascript
-
boolean
$none: Null if not assigned
-
boolean
$center: Null if not assigned
-
boolean
$left: Null if not assigned
-
boolean
$right: Null if not assigned
-
boolean
$id: Null if not assigned
Select list of active users
static string
users
(string $name, string $active, [integer $nouser = 0], [string $javascript = null], [string $order = 'name'])
-
string
$name: The name of the field
-
string
$active: The active user
-
integer
$nouser: If set include an option to select no user
-
string
$javascript: Custom javascript
-
string
$order: Specify a field to order by