Class Editor

Description

The class for the Editor form in full

Located in /classEditor.php (line 99)


	
			
Variable Summary
 mixed $Action
 mixed $BaseTable
 mixed $Fields
 mixed $Id
 mixed $Joins
 mixed $Limit
 mixed $NewWhere
 mixed $Order
 mixed $Query
 mixed $Record
 mixed $SubmitName
 mixed $Template
 mixed $Title
 mixed $Where
Method Summary
 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)
 void Available ()
 void GetRecord ([ $where = ""])
 void Id ([ $id = null])
 void Initialise (array $values)
 void IsCreate ()
 void IsSubmit ()
 void IsUpdate ()
 void Layout ( $template)
 void MoreWhere ( $operator,  $more_where)
 void OrWhere ( $more_where)
 void PostToValues ([ $prefix = ''])
 void Render ([ $title_tag = null])
 string ReplaceEditorPart (array $matches)
 void SetBaseTable ( $base_table)
 void SetJoins ( $join_list)
 void SetLookup ( $field,  $lookup_sql)
 void SetOptionList ( $field,  $options, [ $current = null], [ $parameters = null])
 void SetRecord ( $row)
 void SetSql ( $field,  $sql)
 void SetSubmitName ( $new_submit)
 void SetTemplate ( $template)
 void SetWhere ( $where_clause)
 string Title ([string $new_title = null])
 void Value ( $value_field_name)
 void WhereNewRecord ( $where_clause)
 void Write ([boolean $is_update = null])
Variables
mixed $Action (line 102)
mixed $BaseTable (line 105)
mixed $Fields (line 103)
mixed $Id (line 116)
mixed $Joins (line 106)
mixed $Limit (line 110)
mixed $NewWhere (line 108)
mixed $Order (line 109)
mixed $OrderedFields (line 104)
mixed $Query (line 111)
mixed $Record (line 114)
mixed $RecordAvailable (line 113)
mixed $SubmitName (line 115)
mixed $Template (line 112)
mixed $Title (line 101)
mixed $Where (line 107)
Methods
Constructor __construct (line 118)
Editor __construct ([ $title = ""], [ $fields = null])
  • $title
  • $fields
AddAttribute (line 181)
void AddAttribute ( $field,  $k,  $v)
  • $field
  • $k
  • $v
AddField (line 147)
void &AddField ( $field, [ $sql = ""], [ $lookup_sql = ""])
  • $field
  • $sql
  • $lookup_sql
AndWhere (line 244)
void AndWhere ( $more_where)
  • $more_where
Assign (line 168)
void Assign ( $value_field_name,  $new_value)
  • $value_field_name
  • $new_value
Available (line 262)
void Available ()
GetRecord (line 299)
void GetRecord ([ $where = ""])
  • $where
Id (line 172)
void Id ([ $id = null])
  • $id
Initialise (line 277)

Set some particular values to the ones from the array.

void Initialise (array $values)
  • array $values: An array of fieldname / value pairs
IsCreate (line 224)
void IsCreate ()
IsSubmit (line 211)
void IsSubmit ()
IsUpdate (line 215)
void IsUpdate ()
Layout (line 256)
void Layout ( $template)
  • $template
MoreWhere (line 236)
void MoreWhere ( $operator,  $more_where)
  • $operator
  • $more_where
OrWhere (line 248)
void OrWhere ( $more_where)
  • $more_where
PostToValues (line 289)

This will assign $_POST values to the internal Values object for each field that exists in the Fields array.

void PostToValues ([ $prefix = ''])
  • $prefix
Render (line 440)

Render the templated component. The heavy lifting is done by the callback...

void Render ([ $title_tag = null])
  • $title_tag
ReplaceEditorPart (line 327)

Replace parts into the form template.

  • return: What we want to replace this match with.
string ReplaceEditorPart (array $matches)
  • array $matches: The matches found which preg_replace_callback is calling us for.
SetBaseTable (line 186)
void SetBaseTable ( $base_table)
  • $base_table
SetJoins (line 190)
void SetJoins ( $join_list)
  • $join_list
SetLookup (line 157)
void SetLookup ( $field,  $lookup_sql)
  • $field
  • $lookup_sql
SetOptionList (line 177)
void SetOptionList ( $field,  $options, [ $current = null], [ $parameters = null])
  • $field
  • $options
  • $current
  • $parameters
SetRecord (line 266)
void SetRecord ( $row)
  • $row
SetSql (line 153)
void SetSql ( $field,  $sql)
  • $field
  • $sql
SetSubmitName (line 207)
void SetSubmitName ( $new_submit)
  • $new_submit
SetTemplate (line 252)
void SetTemplate ( $template)
  • $template
SetWhere (line 228)
void SetWhere ( $where_clause)
  • $where_clause
Title (line 201)

Accessor for the Title for the browse, which could set the title also.

  • return: The current title for the browser
string Title ([string $new_title = null])
  • string $new_title: The new title for the browser
Value (line 163)
void Value ( $value_field_name)
  • $value_field_name
WhereNewRecord (line 232)
void WhereNewRecord ( $where_clause)
  • $where_clause
Write (line 463)

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.

Documentation generated on Thu, 15 Apr 2010 20:23:03 +1200 by phpDocumentor 1.3.2