Class EditorField
A class for the fields in the editor
Package: awl\classEditor
Copyright: Catalyst IT Ltd, Morphoss Ltd http://www.morphoss.com/
License: GNU GPL v2
Author: Andrew McMillan andrew@mcmillan.net.nz
Located at classEditor.php
Copyright: Catalyst IT Ltd, Morphoss Ltd http://www.morphoss.com/
License: GNU GPL v2
Author: Andrew McMillan andrew@mcmillan.net.nz
Located at classEditor.php
public
|
#
__construct( unknown $field, string $sql = "", string $lookup_sql = "" )
Creates an EditorField for use in the Editor, possibly initialising the SQL for calculating it's value, and lookup_sql for use in drop-down lists. |
public
|
|
public
|
|
public
|
|
public
|
#
SetOptionList( array $options, string $current = null, string $parameters = null )
Set the SELECT values explicitly, if they are not available in SQL. |
public
|
|
public
|
#
AddAttribute( string $k, string $v )
Add some kind of attribute to this field, such as a 'class' => 'fancyinputthingy' |
public
string
|
#
RenderLabel( string $wrapme )
Render a LABEL around something. In particular it is useful to render a label around checkbox fields to include their labels and make them clickable. |
public
string
|
public
|
$Field
|
|
public
|
$Sql
|
|
public
|
$Value
|
|
public
|
$Attributes
|
|
public
|
$LookupSql
|
|
public
|
$OptionList
|