本文整理汇总了PHP中Nette\Application\UI\Control::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Control::__construct方法的具体用法?PHP Control::__construct怎么用?PHP Control::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Nette\Application\UI\Control
的用法示例。
在下文中一共展示了Control::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct(Nette\Database\Table\Selection $selected, TaskRepository $taskRepository)
{
parent::__construct();
// vždy je potřeba volat rodičovský konstruktor
$this->selected = $selected;
$this->taskRepository = $taskRepository;
}
示例2: __construct
public function __construct(States $states, Colors $colors)
{
parent::__construct();
$this->states = $states;
$this->ordered = $this->states->findBy([], ['sequence' => 'ASC']);
$this->colors = $colors;
}
示例3: __construct
public function __construct($formObject, $formModels)
{
$this->formObject = $formObject;
$this->formModels = $formModels;
$this->formFields = array();
parent::__construct(NULL, NULL);
}
示例4: __construct
public function __construct(IContainer $parent = NULL, $name = NULL)
{
parent::__construct($parent, $name);
$this->templatesDir = __DIR__ . "/templates/";
$this->templateMain = $this->templatesDir . "default.latte";
$this->templateForm = $this->templatesDir . "defaultForm.latte";
}
示例5: __construct
public function __construct(User $user, ItemCardService $ics, $item_no)
{
parent::__construct();
$this->user = $user;
$this->ics = $ics;
$this->item_no = $item_no;
}
示例6: __construct
public function __construct(StatisticFacade $statisticFacade, SystemSettingsFacade $systemSettingsFacade, MailSender $mailSender)
{
parent::__construct();
$this->statisticFacade = $statisticFacade;
$this->mailSender = $mailSender;
$this->setEmailOwner($systemSettingsFacade);
}
示例7: __construct
public function __construct(User $user, CustomerService $cus, CountriesService $cs)
{
parent::__construct();
$this->user = $user;
$this->cus = $cus;
$this->cs = $cs;
}
示例8: __construct
/**
* Class onstructor
* @param IContainer $parent
* @param string $name
* @param array $data Array of Partner entities for render.
*/
public function __construct(IContainer $parent, $name, array $data)
{
parent::__construct($parent, $name);
$this->partners = $data;
$this->templatesDir = __DIR__ . "/templates/";
$this->templateFile = $this->templatesDir . "default.latte";
}
示例9: __construct
public function __construct(Nette\ComponentModel\IContainer $parent = NULL, $name = NULL)
{
parent::__construct($parent, $name);
$this->rootNode = new MenuNode();
$this->rootNode->menu = $this;
$this->rootNode->isRootNode = true;
}
示例10: __construct
public function __construct(Nette\Security\User $user, EntityManager $em, FormFactory $formFactory)
{
parent::__construct();
$this->user = $user;
$this->em = $em;
$this->formFactory = $formFactory;
}
示例11: __construct
public function __construct(GridData $gData = NULL)
{
parent::__construct();
if ($gData) {
$this->gData = $gData;
}
}
示例12: __construct
public function __construct(\Nette\Security\User $user, UserFacade $userFacade)
{
parent::__construct();
$this->user = $user;
$this->userFacade = $userFacade;
$this->setUsers();
}
示例13: __construct
public function __construct(StatisticFacade $statisticFacade, ArticleFacade $articleFacade, UserFacade $userFacade)
{
parent::__construct();
$this->statisticFacade = $statisticFacade;
$this->articleFacade = $articleFacade;
$this->userFacade = $userFacade;
}
示例14: __construct
public function __construct(IContainer $parent = NULL, $name = NULL)
{
parent::__construct($parent, $name);
$this->name = $name;
new Extensions\Translator($this, 'translator');
$this["translator"]->setLocale("en");
}
示例15:
function __construct($templateFile = NULL, IFilterFactory $filterFactory, Trejjam\Utils\Helpers\IBaseList $list = NULL)
{
parent::__construct();
$this->setTemplate($templateFile);
$this->filterFactory = $filterFactory;
$this->list = $list;
}