assoc_array("select * from email_template where et_id = " . $_id); $et_data_array = $et_data_assoc_array[0]; foreach ($et_data_array as $field => $value) { $function_name = "set_" . $field; $this->$function_name($value); } } /** * @return mixed */ public function get_el_id() { return $this->el_id; } /** * @param mixed $el_id * * @return self */ public function set_el_id($el_id) { $this->el_id = $el_id; return $this; } /** * @return mixed */ public function get_el_message() { return $this->el_message; } /** * @param mixed $el_message * * @return self */ public function set_el_message($el_message) { $this->el_message = $el_message; return $this; } /** * @return mixed */ public function get_el_subject() { return $this->el_subject; } /** * @param mixed $el_subject * * @return self */ public function set_el_subject($el_subject) { $this->el_subject = $el_subject; return $this; } /** * @return mixed */ public function get_el_from_name() { return $this->el_from_name; } /** * @param mixed $el_from_name * * @return self */ public function set_el_from_name($el_from_name) { $this->el_from_name = $el_from_name; return $this; } /** * @return mixed */ public function get_el_from_email() { return $this->el_from_email; } /** * @param mixed $el_from_email * * @return self */ public function set_el_from_email($el_from_email) { $this->el_from_email = $el_from_email; return $this; } /** * @return mixed */ public function get_el_sent_date() { return $this->el_sent_date; } /** * @param mixed $el_sent_date * * @return self */ public function set_el_sent_date($el_sent_date) { $this->el_sent_date = $el_sent_date; return $this; } /** * @return mixed */ public function get_el_exception() { return $this->el_exception; } /** * @param mixed $el_exception * * @return self */ public function set_el_exception($el_exception) { $this->el_exception = $el_exception; return $this; } /** * @return mixed */ public function get_el_email_template_et_id() { return $this->el_email_template_et_id; } /** * @param mixed $el_email_template_et_id * * @return self */ public function set_el_email_template_et_id($el_email_template_et_id) { $this->el_email_template_et_id = $el_email_template_et_id; return $this; } } ?>