initialize() public method

Always called by dispatcher before controller's requested method.
Since: 2.0.0
public initialize ( )
Ejemplo n.º 1
0
 /**
  * Runs before every call to this controller.
  */
 public function initialize()
 {
     parent::initialize();
     Gdn_Theme::section('Dashboard');
     set_time_limit(0);
     // Is this even doing anything?
 }
Ejemplo n.º 2
0
 /**
  * Set menu path. Automatically run on every use.
  *
  * @since 2.0.0
  * @access public
  */
 public function initialize()
 {
     parent::initialize();
     Gdn_Theme::section('Dashboard');
     if ($this->Menu) {
         $this->Menu->highlightRoute('/dashboard/settings');
     }
 }
Ejemplo n.º 3
0
 /**
  * Runs before every call to this controller.
  */
 public function initialize()
 {
     parent::initialize();
     Gdn_Theme::section('Dashboard');
     $this->Model = new DBAModel();
     $this->Form = new Gdn_Form();
     $this->addJsFile('dba.js');
 }
 /**
  * Highlight route and do authenticator setup.
  *
  * Always called by dispatcher before controller's requested method.
  *
  * @since 2.0.3
  * @access public
  */
 public function initialize()
 {
     parent::initialize();
     Gdn_Theme::section('Dashboard');
     if ($this->Menu) {
         $this->Menu->highlightRoute('/dashboard/authentication');
     }
     $this->enableSlicing($this);
     $Authenticators = Gdn::authenticator()->GetAvailable();
     $this->ChooserList = array();
     $this->ConfigureList = array();
     foreach ($Authenticators as $AuthAlias => $AuthConfig) {
         $this->ChooserList[$AuthAlias] = $AuthConfig['Name'];
         $Authenticator = Gdn::authenticator()->authenticateWith($AuthAlias);
         $ConfigURL = is_a($Authenticator, "Gdn_Authenticator") && method_exists($Authenticator, 'AuthenticatorConfiguration') ? $Authenticator->AuthenticatorConfiguration($this) : false;
         $this->ConfigureList[$AuthAlias] = $ConfigURL;
     }
     $this->CurrentAuthenticationAlias = Gdn::authenticator()->authenticateWith('default')->getAuthenticationSchemeAlias();
 }
Ejemplo n.º 5
0
 /**
  * Run before
  */
 public function initialize()
 {
     parent::initialize();
     Gdn_Theme::section('Dashboard');
 }
Ejemplo n.º 6
0
 /**
  * Always triggered first. Add Javascript files.
  *
  * @since 2.0.?
  * @access public
  */
 public function initialize()
 {
     parent::initialize();
     Gdn_Theme::section('Dashboard');
     $this->addJsFile('log.js');
     $this->addJsFile('jquery.expander.js');
     $this->Form->InputPrefix = '';
 }
Ejemplo n.º 7
0
 /**
  * Always triggered first. Add Javascript files.
  *
  * @since 2.0.?
  * @access public
  */
 public function initialize()
 {
     parent::initialize();
     Gdn_Theme::section('Dashboard');
     $this->addJsFile('log.js');
     $this->addJsFile('jquery.expander.js');
     $this->addJsFile('jquery-ui.js');
     $this->addJsFile('jquery.popup.js');
 }