/** * конструктор класса, * вносит изменения в структуру базового класса * * @return ничего не возвращает */ public function Sign_up() { parent::Parent_entity(); $this->form_data["kill"] = array("change_password"); $need_activation = $this->global_variables->get("ApproveSignUp") == "1"; if ($need_activation) { $this->form_data['redirect'] = "/advertiser/sign_up/create_wait"; $this->upgrade_form['redirect'] = "/advertiser/sign_up/create_wait"; } else { $this->form_data['redirect'] = "/advertiser/sign_up/create_approve"; $this->upgrade_form['redirect'] = "/advertiser/sign_up/create_approve"; } $need_validation = $this->global_variables->get("ValidateUserEMail"); if ($need_validation) { $this->form_data['redirect'] = "/advertiser/sign_up/create_validation"; } $this->button_name = "{@Do Sign Up@}"; $this->content['CANCEL'] = $this->site_url . $this->index_page . "advertiser/login"; $this->content["TERMS"] = $this->load->view("common/sign_up/terms.html", "", TRUE); $this->content["INFO"] = $this->load->view("common/sign_up/info.html", "", TRUE); $this->_set_title("Advertiser Sign Up"); $this->_set_help_index("sign_up"); }
/** * вызывает функцию редактирования данных адвертайзера * * @return ничего не возвращает */ public function index() { parent::index("modify"); }