当前位置: 首页>>代码示例>>PHP>>正文


PHP Control::__construct方法代码示例

本文整理汇总了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;
 }
开发者ID:nette,项目名称:tutorial-todo,代码行数:7,代码来源:TaskList.php

示例2: __construct

 public function __construct(States $states, Colors $colors)
 {
     parent::__construct();
     $this->states = $states;
     $this->ordered = $this->states->findBy([], ['sequence' => 'ASC']);
     $this->colors = $colors;
 }
开发者ID:Thoronir42,项目名称:G-archive,代码行数:7,代码来源:StateView.php

示例3: __construct

 public function __construct($formObject, $formModels)
 {
     $this->formObject = $formObject;
     $this->formModels = $formModels;
     $this->formFields = array();
     parent::__construct(NULL, NULL);
 }
开发者ID:klajmajk,项目名称:futro,代码行数:7,代码来源:AngularForm.php

示例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";
 }
开发者ID:fuca,项目名称:secondHand,代码行数:7,代码来源:LoginControl.php

示例5: __construct

 public function __construct(User $user, ItemCardService $ics, $item_no)
 {
     parent::__construct();
     $this->user = $user;
     $this->ics = $ics;
     $this->item_no = $item_no;
 }
开发者ID:bagr001,项目名称:NAV_Shop,代码行数:7,代码来源:RatingFormControl.php

示例6: __construct

 public function __construct(StatisticFacade $statisticFacade, SystemSettingsFacade $systemSettingsFacade, MailSender $mailSender)
 {
     parent::__construct();
     $this->statisticFacade = $statisticFacade;
     $this->mailSender = $mailSender;
     $this->setEmailOwner($systemSettingsFacade);
 }
开发者ID:jaromir92,项目名称:Sportwin,代码行数:7,代码来源:SendStatsForm.php

示例7: __construct

 public function __construct(User $user, CustomerService $cus, CountriesService $cs)
 {
     parent::__construct();
     $this->user = $user;
     $this->cus = $cus;
     $this->cs = $cs;
 }
开发者ID:bagr001,项目名称:NAV_Shop,代码行数:7,代码来源:CustomerFormControl.php

示例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";
 }
开发者ID:fuca,项目名称:sportsclub,代码行数:13,代码来源:PartnersControl.php

示例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;
 }
开发者ID:petak23,项目名称:echo-msz,代码行数:7,代码来源:Menu.php

示例10: __construct

 public function __construct(Nette\Security\User $user, EntityManager $em, FormFactory $formFactory)
 {
     parent::__construct();
     $this->user = $user;
     $this->em = $em;
     $this->formFactory = $formFactory;
 }
开发者ID:martinmayer,项目名称:notejam,代码行数:7,代码来源:SettingsControl.php

示例11: __construct

 public function __construct(GridData $gData = NULL)
 {
     parent::__construct();
     if ($gData) {
         $this->gData = $gData;
     }
 }
开发者ID:kissmael,项目名称:kmgrid,代码行数:7,代码来源:KMGrid.php

示例12: __construct

 public function __construct(\Nette\Security\User $user, UserFacade $userFacade)
 {
     parent::__construct();
     $this->user = $user;
     $this->userFacade = $userFacade;
     $this->setUsers();
 }
开发者ID:jaromir92,项目名称:Sportwin,代码行数:7,代码来源:ArticlesFilterForm.php

示例13: __construct

 public function __construct(StatisticFacade $statisticFacade, ArticleFacade $articleFacade, UserFacade $userFacade)
 {
     parent::__construct();
     $this->statisticFacade = $statisticFacade;
     $this->articleFacade = $articleFacade;
     $this->userFacade = $userFacade;
 }
开发者ID:jaromir92,项目名称:Sportwin,代码行数:7,代码来源:GenerateStatsForm.php

示例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");
 }
开发者ID:mesour,项目名称:datagrid,代码行数:7,代码来源:BaseGrid.php

示例15:

 function __construct($templateFile = NULL, IFilterFactory $filterFactory, Trejjam\Utils\Helpers\IBaseList $list = NULL)
 {
     parent::__construct();
     $this->setTemplate($templateFile);
     $this->filterFactory = $filterFactory;
     $this->list = $list;
 }
开发者ID:trejjam,项目名称:utils,代码行数:7,代码来源:ListingFactory.php


注:本文中的Nette\Application\UI\Control::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。