public function __construct($database, $r_header, $r_body, $to_location, $from_location, $r_type) { $this->db = $database; $this->r_header = $r_header; $this->r_body = $r_body; $this->to_location = $to_location; $this->from_location = $from_location; $this->r_type = $r_type; $this->create_date = date('Y-m-d H:i:s'); $this->error = true; parent::__construct($this->db, '', ''); $this->init(); }