本文整理汇总了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;
}
示例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();
}
示例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;
}
示例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;
}
}
示例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();
}
示例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';
}
}
示例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;
}
}
示例8: __construct
/**
* Set PageName.
*
* @since 2.0.0
* @access public
*/
public function __construct()
{
parent::__construct();
$this->PageName = 'dashboard';
}
示例9: __construct
/**
* Do-nothing construct to let children constructs bubble up.
*
* @access public
*/
public function __construct()
{
parent::__construct();
}