本文整理匯總了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();
}