36 parent::__construct(
$config, $reserved);
37 assert(
'is_array($config)');
39 if (isset(
$config[
'attribute'])) {
42 $this->attribute =
'nameid';
65 assert(
'is_string($format)');
69 while (($next = strpos(
$format,
'%', $pos)) !==
false) {
72 $replacement =
$format[$next + 1];
73 switch ($replacement) {
78 $ret[] =
'NameQualifier';
81 $ret[] =
'SPNameQualifier';
108 assert(
'is_array($state)');
109 assert(
'isset($state["Source"]["entityid"])');
110 assert(
'isset($state["Destination"]["entityid"])');
112 if (!isset(
$state[
'saml:sp:NameID'])) {
116 $rep =
$state[
'saml:sp:NameID'];
117 assert(isset($rep->value));
120 if (!isset($rep->Format)) {
123 if (!isset($rep->NameQualifier)) {
124 $rep->NameQualifier =
$state[
'Source'][
'entityid'];
126 if (!isset($rep->SPNameQualifier)) {
127 $rep->SPNameQualifier =
$state[
'Destination'][
'entityid'];
132 foreach ($this->
format as $element) {
136 $value .= $rep->$element;
138 $isString = !$isString;
__construct($config, $reserved)
Initialize this filter, parse configuration.
static parseFormat($format)
Parse a NameID format string into an array.
process(&$state)
Convert NameID to attribute.
const NAMEID_UNSPECIFIED
Unspecified NameID format.
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Create styles array
The data for the language used.
Write to Excel2007 format