/**
  * Intializes the html component.
  *
  * @param boolean $reset Throws away any existing html output when true
  * @return void
  */
 public function initHtml($reset = false)
 {
     if (!$this->html) {
         \Gems_Html::init();
     }
     parent::initHtml();
 }
 /**
  * Returns a login form
  *
  * @param boolean $showToken Optional, show 'Ask token' button, $this->showTokenButton is used when not specified
  * @param boolean $showPasswordLost Optional, show 'Lost password' button, $this->showPasswordLostButton is used when not specified
  * @return \Gems_User_Form_LoginForm
  */
 protected function createLoginForm($showToken = null, $showPasswordLost = null)
 {
     $args = \MUtil_Ra::args(func_get_args(), array('showToken' => 'is_boolean', 'showPasswordLost' => 'is_boolean'), array('showToken' => $this->showTokenButton, 'showPasswordLost' => $this->showPasswordLostButton, 'labelWidthFactor' => $this->labelWidthFactor, 'organizationMaxLines' => $this->organizationMaxLines));
     \Gems_Html::init();
     if ($this->layeredLogin === true) {
         // Allow to set labels without modifying the form by overriding the below methods
         $args['topOrganizationDescription'] = $this->getTopOrganizationDescription();
         $args['childOrganizationDescription'] = $this->getChildOrganizationDescription();
         return $this->loader->getUserLoader()->getLayeredLoginForm($args);
     } else {
         return $this->loader->getUserLoader()->getLoginForm($args);
     }
 }
 public function afterRegistry()
 {
     parent::afterRegistry();
     // Load the display dateformat
     $dateOptions = \MUtil_Model_Bridge_FormBridge::getFixedOptions('date');
     $this->_dateFormat = $dateOptions['dateFormat'];
     $this->creator = \Gems_Html::init();
     // find the menu items only once for more efficiency
     $this->_trackAnswer = $this->findMenuItem('track', 'answer');
     $this->_trackEdit = $this->findMenuItem('track', 'edit-track');
     $this->_trackDelete = $this->findMenuItem('track', 'delete-track');
     $this->_surveyAnswer = $this->findMenuItem('survey', 'answer');
     $this->_takeSurvey = $this->findMenuItem('ask', 'take');
 }
 public function afterRegistry()
 {
     parent::afterRegistry();
     // Load the display dateformat
     $dateOptions = \MUtil_Model_Bridge_FormBridge::getFixedOptions('date');
     $this->_dateFormat = $dateOptions['dateFormat'];
     $this->creator = \Gems_Html::init();
 }