當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。