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


PHP Gdn_Controller::__construct方法代码示例

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


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

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $Form = Gdn::Factory('Form');
     $Form->Method = 'get';
     $Form->InputPrefix = '';
     $this->Form = $Form;
 }
开发者ID:Aetasiric,项目名称:Garden,代码行数:8,代码来源:search.php

示例2: __construct

 public function __construct() {
    $this->User = FALSE;
    $this->_TabView = 'Activity';
    $this->_TabController = 'ProfileController';
    $this->_TabApplication = 'Dashboard';
    $this->_CurrentTab = 'Activity';
    $this->_ProfileTabs = array();      
    parent::__construct();
 }
开发者ID:nerdgirl,项目名称:Forums-ILoveBadTV,代码行数:9,代码来源:class.profilecontroller.php

示例3: __construct

 /**
  * Object instantiation & form prep.
  */
 public function __construct()
 {
     parent::__construct();
     // Object instantiation
     $this->SearchModel = new SearchModel();
     $Form = Gdn::Factory('Form');
     // Form prep
     $Form->Method = 'get';
     $this->Form = $Form;
 }
开发者ID:vanilla,项目名称:vanilla,代码行数:13,代码来源:class.searchcontroller.php

示例4: __construct

 /**
  * Setup error message & override MasterView for popups.
  * 
  * @since 2.0.0
  * @access public
  */
 public function __construct()
 {
     parent::__construct();
     // Set error message here so it can run thru T()
     $this->UsernameError = T('UsernameError', 'Username can only contain letters, numbers, underscores, and must be between 3 and 20 characters long.');
     switch (isset($_GET['display'])) {
         case 'popup':
             $this->MasterView = 'popup';
             break;
     }
 }
开发者ID:elpum,项目名称:TgaForumBundle,代码行数:17,代码来源:class.entrycontroller.php

示例5: __construct

 /**
  * Prep properties.
  *
  * @since 2.0.0
  * @access public
  */
 public function __construct()
 {
     $this->User = false;
     $this->_TabView = 'Activity';
     $this->_TabController = 'ProfileController';
     $this->_TabApplication = 'Dashboard';
     $this->CurrentTab = 'Activity';
     $this->ProfileTabs = array();
     $this->editMode(true);
     parent::__construct();
 }
开发者ID:korelstar,项目名称:vanilla,代码行数:17,代码来源:class.profilecontroller.php

示例6: __construct

 /**
  * Setup error message & override MasterView for popups.
  *
  * @since 2.0.0
  * @access public
  */
 public function __construct()
 {
     parent::__construct();
     $this->internalMethods[] = 'target';
     // Set error message here so it can run thru t()
     $this->UsernameError = t('UsernameError', 'Username can only contain letters, numbers, underscores, and must be between 3 and 20 characters long.');
     // Allow use of a master popup template for easier theming.
     if (Gdn::request()->get('display') === 'popup') {
         $this->MasterView = 'popup';
     }
 }
开发者ID:vanilla,项目名称:vanilla,代码行数:17,代码来源:class.entrycontroller.php

示例7: __construct

 /**
  * Setup error message & override MasterView for popups.
  *
  * @since 2.0.0
  * @access public
  */
 public function __construct()
 {
     parent::__construct();
     $this->internalMethods[] = 'target';
     // Set error message here so it can run thru t()
     $this->UsernameError = t('UsernameError', 'Username can only contain letters, numbers, underscores, and must be between 3 and 20 characters long.');
     switch (isset($_GET['display'])) {
         // TODO: rm global access
         case 'popup':
             $this->MasterView = 'popup';
             break;
     }
 }
开发者ID:R-J,项目名称:vanilla,代码行数:19,代码来源:class.entrycontroller.php

示例8: __construct

 /**
  * Set PageName.
  * 
  * @since 2.0.0
  * @access public
  */
 public function __construct()
 {
     parent::__construct();
     $this->PageName = 'dashboard';
 }
开发者ID:edward-tsai,项目名称:vanilla4china,代码行数:11,代码来源:class.dashboardcontroller.php

示例9: __construct

 /**
  * Do-nothing construct to let children constructs bubble up.
  *
  * @access public
  */
 public function __construct()
 {
     parent::__construct();
 }
开发者ID:karanjitsingh,项目名称:iecse-forum,代码行数:9,代码来源:class.conversationscontroller.php


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