/** * Apply the registry. For a field and a value. * * @param String $context string of the context to apply reg * @param String $fname Name of the field * @param String $fval Value of the field. * @access public */ function apply($context, $fname, $fval) { if (is_object($this->fields[$fname])) { $val = $this->fields[$fname]->process($context, $fval); } else { $field = new FieldTypeChar($fname); $val = $field->process($context, $fval); } //$this->setLogRun(false); $this->setLog("\n field name " . $fname . " - context " . $context); $this->setLog("\n processed value :\n\n" . $val); return $val; }
function default_Form($field_value = "") { parent::default_Form($field_value = ""); $this->processed .= "<input name=\"accessfield[login]\" type=\"hidden\" value=\"" . $this->getFieldName() . "\"/>"; }