Admin_cart_module::_updateModule PHP Метод

_updateModule() приватный Метод

private _updateModule ( )
    private function _updateModule()
    {
        $this->user->restrict('Module.CartModule.Manage');
        if ($this->validateForm() === TRUE) {
            if ($this->Extensions_model->updateExtension('module', 'cart_module', $this->input->post())) {
                $this->Cart_model->updateTotals($this->input->post('cart_totals'));
                $this->alert->set('success', sprintf($this->lang->line('alert_success'), $this->lang->line('_text_title') . ' module ' . $this->lang->line('text_updated')));
            } else {
                $this->alert->set('warning', sprintf($this->lang->line('alert_error_nothing'), $this->lang->line('text_updated')));
            }
            return TRUE;
        }
    }