38 require_once realpath(dirname(__FILE__)).
"/../field_renderers.inc";
55 $this->onPreProcess =
null;
56 $this->onPostProcess =
null;
59 if ($form->data->hasField(
$field))
61 $form->override(
$field, $label, $this);
66 if ($label) $form->alias(
$field, $label);
86 $this->tree->writeHTML();
97 if ($this->onPreProcess !=
null)
100 call_user_func($callback, $this,
$field);
106 if ($this->onPostProcess !=
null)
109 call_user_func($callback, $this,
$field);
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)
_endField($field)
Internal method to generate the closing HTML for the field.
FieldRenderer($parent)
Constructor.
Field renderer for data fields that are selectable via a tree control.
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...
renderSearchField($field, $mode="")
FieldRenderers must override this method to provide the HTML implementation of the control displayed ...
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...
TreeSelectFieldRenderer(&$form, $field, &$tree, $label=null)