Admin_cod::_updateCod PHP Метод

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

private _updateCod ( )
    private function _updateCod()
    {
        $this->user->restrict('Payment.Cod.Manage');
        if ($this->validateForm() === TRUE) {
            if ($this->Extensions_model->updateExtension('payment', 'cod', $this->input->post())) {
                $this->alert->set('success', sprintf($this->lang->line('alert_success'), $this->lang->line('_text_title') . ' payment ' . $this->lang->line('text_updated')));
            } else {
                $this->alert->set('warning', sprintf($this->lang->line('alert_error_nothing'), $this->lang->line('text_updated')));
            }
            return TRUE;
        }
    }