Scalr\Model\Entity\Account\User::getAccountId PHP Method

getAccountId() public method

Gets Identifier of the Account
public getAccountId ( ) : integer
return integer Returns identifier of the Account
    public function getAccountId()
    {
        return $this->accountId;
    }

Usage Example

コード例 #1
0
ファイル: AuditLogger.php プロジェクト: mheydt/scalr
 /**
  * Prepares extra data to pass to a backend
  * Those include RUID, EUID, AccountID, environment etc.
  *
  * @return array Prepared extra data for logging
  */
 protected function getCommonData()
 {
     $data = empty($this->user) ? ["login" => $this->systemTask ? '_' . $this->systemTask : 'guest', "ruid" => null, "euid" => null, "env_id" => $this->envId ?: 0, "account_id" => $this->accountId] : ["login" => $this->user->getEmail(), "ruid" => $this->realUserId ?: $this->user->id, "euid" => $this->user->id, "env_id" => $this->envId ?: 0, "account_id" => empty($this->accountId) ? $this->user->getAccountId() : $this->accountId];
     $data['ip_address'] = $this->ipAddress;
     $data['timestamp'] = AuditLogger::getTimestamp();
     $data['request_type'] = $this->requestType;
     return $data;
 }
All Usage Examples Of Scalr\Model\Entity\Account\User::getAccountId