private function getInput() { $this->object_action = tools_get_input('object_action'); $this->location_id = tools_get_input('location_id'); $this->location_text = tools_get_input('location_text'); $op_type = tools_get_input('op_type'); if (1 == $op_type) { $op_type = 1; } else { $op_type = 0; } $this->operation_type = $op_type; if (tools_get_input('do_not_save')) { $this->do_not_save = true; } $this->action = 'secondpage'; if ($this->location_id == NULL && $this->location_text == NULL) { $this->action = 'firstpage'; } if (tools_is_button('just_save')) { $this->action = 'submit'; } }
private function getInput() { $this->action = 'showpage'; $this->objectID = tools_get_input('object_id'); $op_type = tools_get_input('op_type'); if ($op_type == 1) { $op_type = 1; } else { $op_type = 0; } $this->operation_type = $op_type; if (tools_is_button('just_save')) { $this->action = 'submit'; } }