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; } }
public function __construct($seznam_akci, $typy_priloh, $sporty) { parent::__construct(); $this->seznam_akci = $seznam_akci; $this->typy_priloh = $typy_priloh; $this->sporty = $sporty; }
public function __construct(\Nette\DI\Container $context, $actual = NULL) { parent::__construct($context); $this->pages = $this->context->createServicePages(); if ($actual) { $this->actual = $actual; } }
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(); } }
public function __construct() { parent::__construct(); Language::read('member_chat'); if (strtoupper(CHARSET) == 'GBK') { $_GET = Language::getGBK($_GET); $_POST = Language::getGBK($_POST); } }
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; }
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; } }
public function __construct(\Nette\DI\Container $context) { parent::__construct($context); $this->articles = $this->context->createServiceArticles(); $this->articles->where('ad', '1'); }
function __construct(IComponentContainer $parent = NULL, $name = NULL) { parent::__construct($parent, $name); }
public function __construct($clanky) { parent::__construct(); $this->clanky = $clanky; }
function __construct(IComponentContainer $parent = NULL, $name = NULL) { parent::__construct($parent, $name); $this->helpModel = HelpModel::init(); }
/** * @param \Nette\DI\Container $context */ public function __construct(\Nette\DI\Container $context) { $this->context = $context; parent::__construct($context); }
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-'; }
function __construct(IComponentContainer $parent = NULL, $name = NULL) { parent::__construct($parent, $name); $this->repository = NEnvironment::getApplication()->getPresenter()->getService('ShoppingCart'); }
public function __construct($clanky, $class) { parent::__construct(); $this->clanky = $clanky; $this->class = $class; }
public function __construct(\Nette\DI\Container $context) { parent::__construct($context); $this->articles = $this->context->createServiceCompetitions(); }
public function __construct(\Nette\ComponentModel\IContainer $parent, $name, \ShortcutsManager $shortcutsManager) { parent::__construct($parent, $name); $this->shortcutsManager = $shortcutsManager; }