38 require_once realpath(dirname(__FILE__)).
"/../field_renderers.inc";
54 $this->minLabel =
"(little)";
55 $this->maxLabel =
"(very)";
73 echo
"{$this->minLabel} ";
74 $current = $this->parent->data->get($field);
78 $checked = ($current == $i) ?
" checked='checked'" :
"";
79 echo
"<input type='radio' name='$field' value='$i'$checked> $i ";
82 echo
"{$this->maxLabel}";
92 echo $this->parent->data->get($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 numeric rating data fields.
renderSearchField($field, $mode="equal")
FieldRenderers must override this method to provide the HTML implementation of the control displayed ...
renderField($field)
FieldRenderers must override this method to provide the HTML implementation of the control used to ed...
renderScript($field)
FieldRenderers can override this method to provide any Javascript that their control requires for an ...
RatingFieldRenderer(&$form)