Editor
__construct
([ $title = ""], [ $fields = null])
void
AddAttribute
( $field, $k, $v)
void
&AddField
( $field, [ $sql = ""], [ $lookup_sql = ""])
void
AndWhere
( $more_where)
void
Assign
( $value_field_name, $new_value)
-
$value_field_name
-
$new_value
void
GetRecord
([ $where = ""])
Set some particular values to the ones from the array.
void
Initialise
(array $values)
-
array
$values: An array of fieldname / value pairs
void
MoreWhere
( $operator, $more_where)
void
OrWhere
( $more_where)
This will assign $_POST values to the internal Values object for each field that exists in the Fields array.
void
PostToValues
([ $prefix = ''])
Render the templated component. The heavy lifting is done by the callback...
void
Render
([ $title_tag = null])
Replace parts into the form template.
string
ReplaceEditorPart
(array $matches)
-
array
$matches: The matches found which preg_replace_callback is calling us for.
void
SetBaseTable
( $base_table)
void
SetJoins
( $join_list)
void
SetLookup
( $field, $lookup_sql)
void
SetOptionList
( $field, $options, [ $current = null], [ $parameters = null])
-
$field
-
$options
-
$current
-
$parameters
void
SetSql
( $field, $sql)
void
SetSubmitName
( $new_submit)
void
SetTemplate
( $template)
void
SetWhere
( $where_clause)
Accessor for the Title for the browse, which could set the title also.
string
Title
([string $new_title = null])
-
string
$new_title: The new title for the browser
void
Value
( $value_field_name)
void
WhereNewRecord
( $where_clause)
Write the record
void
Write
([boolean $is_update = null])
-
boolean
$is_update: Tell the write whether it's an update or insert. Hopefully it should be able to figure it out though.