Пример #1
0
 function createComponent($name)
 {
     switch ($name) {
         case 'loginForm':
             $form = new NAppForm();
             $form->getElementPrototype()->addClass('ajax');
             $form->addText('login', _('Prihlasovacie meno'))->addRule(NFORM::FILLED, _('Prihlasovacie meno musí byť vyplnené'));
             $form->addPassword('password', 'Heslo')->addRule(NFORM::FILLED, _('Heslo musí byť vyplnené.'));
             $form->addSubmit('btn_submit', _('Prihlásiť sa'));
             $form->addHidden('backlink');
             $form->onSuccess[] = array($this, 'onSubmitAuthenticate');
             $this->addComponent($form, $name);
             break;
         case 'cartLoginForm':
             $form = new NAppForm();
             $form->getElementPrototype()->addClass('ajax');
             $form->addText('login', _('Prihlasovacie meno'))->addRule(NFORM::FILLED, _('Prihlasovacie meno musí byť vyplnené'));
             $form->addPassword('password', 'Heslo')->addRule(NFORM::FILLED, _('Heslo musí byť vyplnené.'));
             $form->addSubmit('btn_submit', _('Prihlásiť sa'));
             $form->addHidden('backlink');
             $form->onSuccess[] = array($this, 'onSubmitAuthenticate');
             //				dump($form);exit;
             $this->addComponent($form, $name);
             break;
         default:
             return parent::__construct();
             break;
     }
 }
Пример #2
0
 public function __construct($seznam_akci, $typy_priloh, $sporty)
 {
     parent::__construct();
     $this->seznam_akci = $seznam_akci;
     $this->typy_priloh = $typy_priloh;
     $this->sporty = $sporty;
 }
Пример #3
0
 public function __construct(\Nette\DI\Container $context, $actual = NULL)
 {
     parent::__construct($context);
     $this->pages = $this->context->createServicePages();
     if ($actual) {
         $this->actual = $actual;
     }
 }
Пример #4
0
 function __construct(IComponentContainer $parent = NULL, $name = NULL)
 {
     parent::__construct($parent, $name);
     $this->session = NEnvironment::getSession('cart');
     if (!isset($this->session->products)) {
         $this->session->products = array();
     }
 }
Пример #5
0
 public function __construct()
 {
     parent::__construct();
     Language::read('member_chat');
     if (strtoupper(CHARSET) == 'GBK') {
         $_GET = Language::getGBK($_GET);
         $_POST = Language::getGBK($_POST);
     }
 }
Пример #6
0
 public function __construct(SpravceAkci $spravceAkci)
 {
     parent::__construct();
     //        $this->akceRepository = $akceRepository;
     $this->mesic = date('m');
     $this->rok = date('Y');
     $this->currentDay = date('j');
     $this->spravceAkci = $spravceAkci;
 }
Пример #7
0
 public function __construct($vysledky, $sport, $typ, $vypisovane_naradi = null)
 {
     parent::__construct();
     dd($vysledky, 'vysledky');
     $this->vysledky = $vysledky;
     $this->sport = $sport;
     $this->typ = $typ;
     dd($vypisovane_naradi, 'naradi');
     if ($vypisovane_naradi) {
         $this->vypisovane_naradi = $vypisovane_naradi;
     }
 }
Пример #8
0
 public function __construct(\Nette\DI\Container $context)
 {
     parent::__construct($context);
     $this->articles = $this->context->createServiceArticles();
     $this->articles->where('ad', '1');
 }
Пример #9
0
 function __construct(IComponentContainer $parent = NULL, $name = NULL)
 {
     parent::__construct($parent, $name);
 }
Пример #10
0
 public function __construct($clanky)
 {
     parent::__construct();
     $this->clanky = $clanky;
 }
Пример #11
0
 function __construct(IComponentContainer $parent = NULL, $name = NULL)
 {
     parent::__construct($parent, $name);
     $this->helpModel = HelpModel::init();
 }
Пример #12
0
 /**
  * @param \Nette\DI\Container $context
  */
 public function __construct(\Nette\DI\Container $context)
 {
     $this->context = $context;
     parent::__construct($context);
 }
Пример #13
0
 function __construct(IComponentContainer $parent = NULL, $name = NULL)
 {
     parent::__construct($parent, $name);
     $this->icon_dir = '/images/attachment/ico-';
     $this->abs_icon_dir = WWW_DIR . '/images/attachment/ico-';
 }
Пример #14
0
 function __construct(IComponentContainer $parent = NULL, $name = NULL)
 {
     parent::__construct($parent, $name);
     $this->repository = NEnvironment::getApplication()->getPresenter()->getService('ShoppingCart');
 }
Пример #15
0
 public function __construct($clanky, $class)
 {
     parent::__construct();
     $this->clanky = $clanky;
     $this->class = $class;
 }
Пример #16
0
 public function __construct(\Nette\DI\Container $context)
 {
     parent::__construct($context);
     $this->articles = $this->context->createServiceCompetitions();
 }
Пример #17
0
 public function __construct(\Nette\ComponentModel\IContainer $parent, $name, \ShortcutsManager $shortcutsManager)
 {
     parent::__construct($parent, $name);
     $this->shortcutsManager = $shortcutsManager;
 }