30        parent::__construct(
$config, $reserved);
 
   31        assert(
'is_array($config)');
 
   33        if (!isset(
$config[
'Format'])) {
 
   36        $this->format = (string) 
$config[
'Format'];
 
   38        if (!isset(
$config[
'attribute'])) {
 
   41        $this->attribute = (string) 
$config[
'attribute'];
 
   54        if (!isset(
$state[
'Attributes'][$this->attribute]) || count(
$state[
'Attributes'][$this->attribute]) === 0) {
 
   56                'Missing attribute '.var_export($this->attribute, 
true).
 
   57                ' on user - not generating attribute NameID.' 
   61        if (count(
$state[
'Attributes'][$this->attribute]) > 1) {
 
   63                'More than one value in attribute '.var_export($this->attribute, 
true).
 
   64                ' on user - not generating attribute NameID.' 
   68        $value = array_values(
$state[
'Attributes'][$this->attribute]); 
 
   73                'Empty value in attribute '.var_export($this->attribute, 
true).
 
   74                ' on user - not generating persistent NameID.' 
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
An exception for terminatinating execution or to throw for unit testing.
getValue(array &$state)
Get the NameID value.
__construct($config, $reserved)
Initialize this filter, parse configuration.