Backend\Modules\Analytics\Form\SettingsType::handle PHP Method

handle() public method

public handle ( ) : boolean
return boolean
    public function handle()
    {
        if ($this->form instanceof Form) {
            return false;
        }
        return $this->form->handle();
    }

Usage Example

Exemplo n.º 1
0
 public function execute()
 {
     parent::execute();
     $settingsForm = new SettingsType('settings', $this->get('fork.settings'), $this->get('analytics.google_analytics_service'));
     if ($settingsForm->handle()) {
         $this->redirect(Model::createURLForAction('Settings'));
     }
     $settingsForm->parse($this->tpl);
     if ($this->get('fork.settings')->get($this->getModule(), 'web_property_id')) {
         $this->tpl->assign('web_property_id', $this->get('fork.settings')->get($this->getModule(), 'web_property_id'));
     }
     if ($this->get('fork.settings')->get($this->getModule(), 'profile')) {
         $this->tpl->assign('profile', $this->get('fork.settings')->get($this->getModule(), 'profile'));
     }
     $this->display();
 }