public function __construct(RM_Forms $be_form) { $this->fields = array(); $this->form_type = RM_BASE_FORM; $this->custom_pre_str = ''; $this->custom_post_str = ''; $this->form_id = $be_form->get_form_id(); $this->form_name = $be_form->get_form_name(); $this->form_options = $be_form->get_form_options(); $this->form_options->form_should_auto_expire = $be_form->get_form_should_auto_expire(); $this->form_options->form_should_send_email = $be_form->get_form_should_send_email(); if (isset($be_form->form_redirect) && $be_form->form_redirect != "none" && $be_form->form_redirect != "") { $this->form_options->redirection_type = $be_form->form_redirect; } else { $this->form_options->redirection_type = null; } $this->form_options->redirect_page = $be_form->get_form_redirect_to_page(); $this->form_options->redirect_url = $be_form->get_form_redirect_to_url(); $this->primary_field_indices = array(); $this->service = new RM_Front_Form_Service(); }