applications/dashboard/controllers/class.profilecontroller.php
public function Invitations($UserReference = '', $Username = '', $UserID = '') {
      $this->Permission('Garden.SignIn.Allow');
      $this->EditMode(FALSE);
      $this->GetUserInfo($UserReference, $Username, $UserID, $this->Form->AuthenticatedPostBack());
      $this->SetTabView('Invitations');
      
      $InvitationModel = new InvitationModel();
      $this->Form->SetModel($InvitationModel);
      if ($this->Form->AuthenticatedPostBack()) {
         // Send the invitation
         if ($this->Form->Save($this->UserModel)) {
            $this->InformMessage(T('Your invitation has been sent.'));
            $this->Form->ClearInputs();
         }
      }
      $Session = Gdn::Session();
      $this->InvitationCount = $this->UserModel->GetInvitationCount($Session->UserID);
      $this->InvitationData = $InvitationModel->GetByUserID($Session->UserID);

      $this->Render();
   }
public function Invitations($UserReference = '', $Username = '', $UserID = '') {
      $this->Permission('Garden.SignIn.Allow');
      $this->EditMode(FALSE);
      $this->GetUserInfo($UserReference, $Username, $UserID, $this->Form->AuthenticatedPostBack());
      $this->SetTabView('Invitations');
      
      $InvitationModel = new InvitationModel();
      $this->Form->SetModel($InvitationModel);
      if ($this->Form->AuthenticatedPostBack()) {
         // Send the invitation
         if ($this->Form->Save($this->UserModel)) {
            $this->InformMessage(T('Your invitation has been sent.'));
            $this->Form->ClearInputs();
         }
      }
      $Session = Gdn::Session();
      $this->InvitationCount = $this->UserModel->GetInvitationCount($Session->UserID);
      $this->InvitationData = $InvitationModel->GetByUserID($Session->UserID);

      $this->Render();
   }
public function Invitations ( $ UserReference = '' , $ Username = '' , $ UserID = '' ) { $ this -> Permission ( 'Garden.SignIn.Allow' ) ; $ this -> EditMode ( FALSE ) ; $ this -> GetUserInfo ( $ UserReference , $ Username , $ UserID , $ this -> Form -> AuthenticatedPostBack ( ) ) ; $ this -> SetTabView ( 'Invitations' ) ; $ InvitationModel = new InvitationModel ( ) ; $ this -> Form -> SetModel ( $ InvitationModel ) ; if ( $ this -> Form -> AuthenticatedPostBack ( ) ) { // Send the invitation if ( $ this -> Form -> Save ( $ this -> UserModel ) ) { $ this -> InformMessage ( T ( 'Your invitation has been sent.' ) ) ; $ this -> Form -> ClearInputs ( ) ; } } $ Session = Gdn :: Session ( ) ; $ this -> InvitationCount = $ this -> UserModel -> GetInvitationCount ( $ Session -> UserID ) ; $ this -> InvitationData = $ InvitationModel -> GetByUserID ( $ Session -> UserID ) ; $ this -> Render ( ) ; }
Manage current user's invitations.

@since 2.0.0
@access public
Manage current user s invitations .