Scalr_Account_User::getId PHP Method

getId() public method

Gets effective user identifier
public getId ( ) : integer
return integer Returns identifier of the user
    public function getId()
    {
        return $this->id;
    }

Usage Example

コード例 #1
0
ファイル: Controller.php プロジェクト: scalr/scalr
 /**
  * Gets the User Entity for the current request
  *
  * @return  User|null Returns the User entity for the current Request
  */
 public function getUser()
 {
     if (empty($this->_user) && $this->user->getId()) {
         $this->_user = User::findPk($this->user->getId());
     }
     return $this->_user;
 }
All Usage Examples Of Scalr_Account_User::getId