示例#1
0
 /**
  * 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;
 }