applications/dashboard/controllers/class.entrycontroller.php
public function Register($InvitationCode = '') {
      if (!$this->Request->IsPostBack())
         $this->CheckOverride('Register', $this->Target());
      
      $this->FireEvent("Register");
      
      $this->Form->SetModel($this->UserModel);

      // Define gender dropdown options
      $this->GenderOptions = array(
         'u' => T('Unspecified'),
         'm' => T('Male'),
         'f' => T('Female')
      );

      // Make sure that the hour offset for new users gets defined when their account is created
      $this->AddJsFile('entry.js');
         
      $this->Form->AddHidden('ClientHour', date('Y-m-d H:00')); // Use the server's current hour as a default
      $this->Form->AddHidden('Target', $this->Target());
      
      $this->SetData('NoEmail', UserModel::NoEmail());
      
      $RegistrationMethod = $this->_RegistrationView();
      $this->View = $RegistrationMethod;
      $this->$RegistrationMethod($InvitationCode);
   }
public function Register($InvitationCode = '') {
      if (!$this->Request->IsPostBack())
         $this->CheckOverride('Register', $this->Target());
      
      $this->FireEvent("Register");
      
      $this->Form->SetModel($this->UserModel);

      // Define gender dropdown options
      $this->GenderOptions = array(
         'u' => T('Unspecified'),
         'm' => T('Male'),
         'f' => T('Female')
      );

      // Make sure that the hour offset for new users gets defined when their account is created
      $this->AddJsFile('entry.js');
         
      $this->Form->AddHidden('ClientHour', date('Y-m-d H:00')); // Use the server's current hour as a default
      $this->Form->AddHidden('Target', $this->Target());
      
      $this->SetData('NoEmail', UserModel::NoEmail());
      
      $RegistrationMethod = $this->_RegistrationView();
      $this->View = $RegistrationMethod;
      $this->$RegistrationMethod($InvitationCode);
   }
public function Register ( $ InvitationCode = '' ) { if ( ! $ this -> Request -> IsPostBack ( ) ) $ this -> CheckOverride ( 'Register' , $ this -> Target ( ) ) ; $ this -> FireEvent ( "Register" ) ; $ this -> Form -> SetModel ( $ this -> UserModel ) ; // Define gender dropdown options $ this -> GenderOptions = array ( 'u' => T ( 'Unspecified' ) , 'm' => T ( 'Male' ) , 'f' => T ( 'Female' ) ) ; // Make sure that the hour offset for new users gets defined when their account is created $ this -> AddJsFile ( 'entry.js' ) ; $ this -> Form -> AddHidden ( 'ClientHour' , date ( 'Y-m-d H:00' ) ) ; // Use the server's current hour as a default $ this -> Form -> AddHidden ( 'Target' , $ this -> Target ( ) ) ; $ this -> SetData ( 'NoEmail' , UserModel :: NoEmail ( ) ) ; $ RegistrationMethod = $ this -> _RegistrationView ( ) ; $ this -> View = $ RegistrationMethod ; $ this -> $ RegistrationMethod ( $ InvitationCode ) ; }
Calls the appropriate registration method based on the configuration setting.

Events: Register

@access public
@since 2.0.0

@param string $InvitationCode Unique code given to invited user.
Calls the appropriate registration method based on the configuration setting .