__construct() public method

public __construct ( )
Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     $Form = Gdn::Factory('Form');
     $Form->Method = 'get';
     $Form->InputPrefix = '';
     $this->Form = $Form;
 }
 public function __construct() {
    $this->User = FALSE;
    $this->_TabView = 'Activity';
    $this->_TabController = 'ProfileController';
    $this->_TabApplication = 'Dashboard';
    $this->_CurrentTab = 'Activity';
    $this->_ProfileTabs = array();      
    parent::__construct();
 }
Esempio n. 3
0
 /**
  * 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;
 }
 /**
  * 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;
     }
 }
 /**
  * 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();
 }
Esempio n. 6
0
 /**
  * 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';
     }
 }
Esempio n. 7
0
 /**
  * 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;
     }
 }
 /**
  * Set PageName.
  * 
  * @since 2.0.0
  * @access public
  */
 public function __construct()
 {
     parent::__construct();
     $this->PageName = 'dashboard';
 }
 /**
  * Do-nothing construct to let children constructs bubble up.
  *
  * @access public
  */
 public function __construct()
 {
     parent::__construct();
 }