27                parent::__construct(
$config, $reserved);
 
   29                assert(
'is_array($config)');
 
   31                if (array_key_exists(
'attributename', 
$config)) {
 
   32                        $this->attribute = 
$config[
'attributename'];
 
   33                        if (!is_string($this->attribute)) {
 
   34                                throw new Exception(
'Invalid attribute name given to core:StatisticsWithAttribute filter.');
 
   38                if (array_key_exists(
'type', 
$config)) {
 
   39                        $this->typeTag = 
$config[
'type'];
 
   40                        if (!is_string($this->typeTag)) {
 
   41                                throw new Exception(
'Invalid typeTag given to core:StatisticsWithAttribute filter.');
 
   53                assert(
'is_array($state)');
 
   54                assert(
'array_key_exists("Attributes", $state)');
 
   61                if (array_key_exists(
'Source', 
$state)) {
 
   62                        if (isset(
$state[
'Source'][
'core:statistics-id'])) {
 
   69                if (array_key_exists(
'Destination', 
$state)) {
 
   70                        if (isset(
$state[
'Destination'][
'core:statistics-id'])) {
 
   71                                $dest = 
$state[
'Destination'][
'core:statistics-id'];
 
   73                                $dest = 
$state[
'Destination'][
'entityid'];
 
   77                if (!array_key_exists(
'PreviousSSOTimestamp', 
$state)) {
 
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
An exception for terminatinating execution or to throw for unit testing.
__construct($config, $reserved)
Initialize this filter.
process(&$state)
Log line.
$attribute
The attribute to log.