OneLogin_Saml2_Auth::getAttribute PHP Метод

getAttribute() публичный Метод

Returns the requested SAML attribute
public getAttribute ( string $name ) : array | null
$name string The requested attribute of the user.
Результат array | null Requested SAML attribute ($name).
    public function getAttribute($name)
    {
        assert('is_string($name)');
        $value = null;
        if (isset($this->_attributes[$name])) {
            return $this->_attributes[$name];
        }
        return $value;
    }

Usage Example

Пример #1
0
 /**
  * Call the getAttribute method on OneLogin_Saml2_Auth.
  */
 public function getAttribute($name)
 {
     return $this->instance->getAttribute($name);
 }