function default_Form($field_value = "") { if (!$this->getRData('hidden') && !$this->getRData('readonly')) { if (!$this->getRdata('execute')) { $field_value = $this->no_PhpCode($field_value); } if ($this->getRdata("loginform")) { $fval .= "<input type=\"password\" name=\"fields[" . $this->getFieldName() . "]\" value=\"" . $field_value . "\"/>"; } else { $e_password = new Event($this->getEventActionName("eventCheckUsernamePassword")); $e_password->addParam("accessfield[password]", $this->getFieldName())->setLevel($this->getEventLevel()); $fval = $e_password->getEvent(); $fval .= "<input " . $this->getStyleParam() . " type=\"password\" name=\"fields[" . $this->getFieldName() . "]\" value=\"" . $field_value . "\"/>"; $fval .= "\n<br/><input id=\"confirm_password\" type=\"password\" name=\"fieldrepeatpass[" . $this->getFieldName() . "]\" value=\"" . $field_value . "\"/>"; } $this->processed .= $fval; } }
/** * rdataForm_unique rdata method check in the field content is unique in the db. * * This rdata will trigger the mydb.checkRequired event to check if the field contains a value. * @param string $field_value value of the field */ function rdataForm_unique($field_value = "") { $this->setLog("\n calling method: rdataForm_unique"); if ($this->getRData('unique') && $this->getRData('unique_table_name')) { $this->setLog("\n Generating eventAction for unique"); $e_unique = new Event($this->getEventActionName("eventCheckUnique")); $e_unique->addParam("unique[" . $this->getFieldName() . "]", "yes")->setLevel($this->getEventLevel()); $this->addProcessed($e_unique->getEvent()); } }