protected function createComponentResultPdf()
 {
     $form = new Form();
     $form->addComponent(new UserPdfSettingsContainer($this->companyParameters), 'userSettings');
     $form->addComponent(new ListingsPdfSettingsContainer(), 'listingsSettings');
     $form->addSubmit('generatePdf', 'Stáhnout PDF')->onClick[] = [$this, 'generatePdf'];
     $form->addSubmit('reset', 'Reset nastavení')->onClick[] = [$this, 'processReset'];
     $form->addProtection();
     return $form;
 }
Example #2
0
 public function addComponent(IComponent $component, $name, $insertBefore = NULL)
 {
     if (strpos($name, '.') !== FALSE) {
         $alias = str_replace('.', $this->delimiter, $name);
         $this->dict[$name] = $alias;
         $name = $alias;
     }
     return parent::addComponent($component, $name, $insertBefore);
 }