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


PHP AbstractController::__construct方法代码示例

本文整理汇总了PHP中AbstractController::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractController::__construct方法的具体用法?PHP AbstractController::__construct怎么用?PHP AbstractController::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AbstractController的用法示例。


在下文中一共展示了AbstractController::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     parent::__construct(new View(Config::DIR_TMPL), new Message(Config::FILE_MESSAGES));
     $this->mail = new Mail();
     $this->url_active = URL::deleteGET(URL::current(), "page");
     $this->link_search = URL::get("search");
 }
开发者ID:kuaa59,项目名称:www,代码行数:7,代码来源:controller_class.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $this->model = new StatsModel();
     $this->view = new StatsView();
     $this->chartHelper = new ChartHelper();
 }
开发者ID:Abhishek627,项目名称:crux,代码行数:7,代码来源:StatsController.php

示例3: __construct

 public function __construct($params)
 {
     if (!isset($_SERVER['SSL_CLIENT_S_DN_CN']) || $_SERVER['SSL_CLIENT_S_DN_CN'] != ADMIN_CERT) {
         throw new Exception('Access denied');
     }
     parent::__construct($params);
 }
开发者ID:43TH3R,项目名称:ioc-server,代码行数:7,代码来源:Web.php

示例4: __construct

 /**
  * @var ITeamInvitationRepository
  */
 public function __construct()
 {
     parent::__construct();
     $this->member_repository = new SapphireCLAMemberRepository();
     $this->invitation_repository = new SapphireTeamInvitationRepository();
     $this->team_manager = new CCLATeamManager($this->invitation_repository, $this->member_repository, new TeamInvitationFactory(), new TeamFactory(), new CCLAValidatorFactory(), new SapphireTeamRepository(), SapphireTransactionManager::getInstance());
 }
开发者ID:OpenStackweb,项目名称:openstack-org,代码行数:10,代码来源:TeamInvitationConfirmation_Controller.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     $this->model = new UploadModel();
     $this->view = new UploadView();
     $this->allowedExts = array('c', 'cpp', 'java', 'py', 'php', 'cs', 'js', 'xml', 'json', 'rb', 'scala', 'go');
 }
开发者ID:Abhishek627,项目名称:crux,代码行数:7,代码来源:UploadController.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->delete_request_repository = new SapphireDupeMemberDeleteRequestRepository();
     $this->merge_request_repository = new SapphireDupeMemberMergeRequestRepository();
     $this->manager = new DupesMembersManager(new SapphireDupesMemberRepository(), new DupeMemberMergeRequestFactory(), new DupeMemberDeleteRequestFactory(), $this->merge_request_repository, $this->delete_request_repository, new SapphireDeletedDupeMemberRepository(), new DeletedDupeMemberFactory(), new SapphireCandidateNominationRepository(), new SapphireNotMyAccountActionRepository(), new NotMyAccountActionFactory(), SapphireTransactionManager::getInstance(), SapphireBulkQueryRegistry::getInstance());
 }
开发者ID:Thingee,项目名称:openstack-org,代码行数:7,代码来源:DupesMembers_Controller.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     $this->suggestfeedback = new Service_Feedbackinfo();
     $this->cityinfo = new Service_Cityinfo();
     $this->communitypropertyinfo = new Service_Communitypropertyinfo();
     $this->bllfeedbackinfo = new Bll_Feedbackinfo();
 }
开发者ID:emilymwang8,项目名称:cms,代码行数:8,代码来源:Suggestfeedback.php

示例8: __construct

 public function __construct()
 {
     parent::__construct(new View(Config::DIR_TMPL), new Message(Config::FILE_MESSAGES));
     //передаем шаблонизатор и др
     $this->mail = new Mail();
     $this->url_active = URL::deleteGET(URL::current(), "page");
     //присваиваем активную страницу удалив page
 }
开发者ID:andreiBall,项目名称:main-site,代码行数:8,代码来源:controller_class.php

示例9: __construct

 public function __construct($view)
 {
     parent::__construct($view);
     // add necessary subcontrollers to display a whole page
     $this->addSubController(new OutlineController());
     $this->addSubController(new NavigationController());
     $this->addSubController(new FooterController());
 }
开发者ID:webel3,项目名称:ch.bfh.bti7054.w2014.q.wew,代码行数:8,代码来源:PageController.php

示例10:

 function __construct()
 {
     parent::__construct();
     $this->load->model("Projetos_model");
     $allProjects = $this->Projetos_model->getXML();
     $this->_data["projectList"] = $allProjects;
     $this->setTemplate("pages/site/site_view");
 }
开发者ID:josecatalani,项目名称:josecatalani.github.io,代码行数:8,代码来源:site.php

示例11: __construct

 /**
  * Constructor
  * 
  * @param $connector 
  */
 public function __construct(IBlogTransactions $connector)
 {
     // Wenn id auf dem Wert null bleibt, befinden wir uns in der "Latest" Ansicht
     if ($this->id == 0) {
         $this->numPosts = LATEST_ENTRIES_COUNT;
     }
     parent::__construct($connector);
 }
开发者ID:bfolder,项目名称:tinyBlog,代码行数:13,代码来源:PostsController.php

示例12: DatabaseProxy

 /**
  * Initializes the Controller instance and selects the appropiate View
  * @param Context $context
  */
 function __construct(Context $context)
 {
     $type = $context->getViewType();
     $class_name = $type . 'view';
     $view = new $class_name($context);
     parent::__construct($context, $view);
     $this->db = new DatabaseProxy($this->load);
     $this->helper = new HelperLoader($this->load);
 }
开发者ID:RNKushwaha022,项目名称:orange-php,代码行数:13,代码来源:controller.class.php

示例13: HtmlView

 function __construct(Context $context, $parent_context = null)
 {
     $this->parent_context = $parent_context;
     $view = new HtmlView($context);
     $view->setBufferOutput(true);
     parent::__construct($context, $view);
     $this->helper = new HelperLoader($this->load);
     $this->_execute();
 }
开发者ID:RNKushwaha022,项目名称:orange-php,代码行数:9,代码来源:block.class.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     $this->communitypropertyinfo = new Service_Communitypropertyinfo();
     $this->interestgroupinfo = new Service_Group();
     $this->cityinfo = new Service_Cityinfo();
     $this->communityname = new Bll_Feedbackinfo();
     $this->hobbyinfo = new Service_Hobby();
 }
开发者ID:emilymwang8,项目名称:cms,代码行数:9,代码来源:Issuedtopiclist.php

示例15: __construct

 protected function __construct($controller)
 {
     parent::__construct($controller);
     if (Router::getDefaultModule() == 'Page') {
         if (Page_Handler::getPageID()) {
             $this->show->merge(Page_Handler::getPage(), true);
             $this->show->breadcrumbs = Page_Handler::getPage()->getParents();
         }
         $oPage = new Page();
         list($full, $current) = $oPage->getMenuList();
         if (is_array($full) && count($full)) {
             foreach ($full as $menu) {
                 if (isset($menu["Children0"])) {
                     $this->show->{'MENU_' . $menu["StaticPath"]} = $menu["Children0"];
                 }
             }
         }
     }
     // i.kiz   для интернет магазина
     //     $trash                  = NULL;
     //    $this->show->basketList = NULL;
     if ($this->show->itemID) {
         $this->show->staticPath = $this->show->itemID;
     } else {
         if (!empty($this->data[0])) {
             $this->show->staticPath = $this->data[0];
         } else {
             $this->show->staticPath = 0;
         }
     }
     $this->oCatalogCategory = new Catalog_Category();
     $this->oCatalogBrand = new Catalog_Brand();
     $this->show->catalogBrand = $this->oCatalogBrand->getList();
     // menu
     $i = 0;
     $this->show->catalogMenu = array();
     foreach ($this->show->catalogBrand as $br) {
         $this->show->catalogMenu['Brand'][$i] = $br['Title'];
         $cats = $this->oCatalogCategory->getList($br['BrandID']);
         $j = 0;
         foreach ($cats as $cat) {
             $this->show->catalogMenu['Category'][$i][$j] = $cat['Title'];
             $this->show->catalogMenu['CategoryID'][$i][$j] = $cat['CategoryID'];
             $j++;
         }
         $i++;
     }
     //        корзина
     $this->session = MySession::getInstance();
     $trash = $this->session->get('trash');
     if (isset($trash)) {
         $this->show->trash = $trash;
     } else {
         $this->show->trash = array();
     }
 }
开发者ID:kizz66,项目名称:meat,代码行数:56,代码来源:PublicController.php


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