label=$name; $this->name=$name; $this->default_value=$value; $this->css=''; $this->type='text'; $this->required=0; $this->comment_form=''; $this->txt_error = _('Error in field'); $this->extra_param=''; } public function form() { return 'extra_param.' placeholder="'.$this->placeholder.'"> '.$this->comment_form; } public function set_parameters(array $parameters) { foreach($parameters as $property => $value) { $this->$property=$value; } } /** * Static method where is registered the js necessary for a field */ static public function js() { } /** * Static method where is registered the css necessary for a field */ static public function css() { } /** * Static method where is registered other headers for the form. */ static public function header() { } /** * Method for escape value for html input */ public function setform($value) { return trim(htmlspecialchars($value)); } } ?>