38 require_once realpath(dirname(__FILE__)).
"/../field_renderers.inc";
71 if (
$parent->data->hasField($this->field))
73 $parent->override($this->field, $this->label, $this);
77 $parent->add($this, $this->field);
85 return $this->table->writeScript();
98 $this->table->drawView();
104 if ($this->onPreProcess !=
null)
107 call_user_func($callback, $this,
$field);
113 $this->table->selectable =
false;
119 if ($this->onPostProcess !=
null)
122 call_user_func($callback, $this,
$field);
Add a DataListView table to an AutoForm.
renderSearchField($field, $mode="")
FieldRenderers must override this method to provide the HTML implementation of the control displayed ...
DataListFieldRenderer(&$parent, $table, $field="", $label="")
renderScript($field)
FieldRenderers can override this method to provide any Javascript that their control requires for an ...
postProcess($field="")
FieldRenderers can override this method to provide behavior that occurs after the parent form's targe...
renderField($field)
FieldRenderers must override this method to provide the HTML implementation of the control used to ed...
preProcess($field="")
FieldRenderers can override this method to provide behavior that occurs prior to the saving of the pa...
FieldRenderer is the abstract base class for all FieldRenderers.
_startField($field, $styles="")
Internal method to generate the starting HTML for the field (including the label)
$onPreProcess
callback hook for processing prior to saving the form's data object - individual renderers may overri...
_endField($field)
Internal method to generate the closing HTML for the field.
$onPostProcess
callback hook for processing after saving the form's data object - individual renderers may override ...
FieldRenderer($parent)
Constructor.
prettify($name)
Takes a variable or field name and converts it into a human-readable version (assuming that the origi...