36 parent::__construct(
$config, $reserved);
40 if (array_key_exists(
'attributename',
$config)) {
41 $this->attribute =
$config[
'attributename'];
42 if (!is_string($this->attribute)) {
43 throw new Exception(
'Invalid attribute name given to core:StatisticsWithAttribute filter.');
47 if (array_key_exists(
'type',
$config)) {
48 $this->typeTag =
$config[
'type'];
49 if (!is_string($this->typeTag)) {
50 throw new Exception(
'Invalid typeTag given to core:StatisticsWithAttribute filter.');
54 if (array_key_exists(
'skipPassive',
$config)) {
55 $this->skipPassive = (bool)
$config[
'skipPassive'];
68 assert(array_key_exists(
'Attributes',
$state));
73 if (array_key_exists(
'isPassive',
$state) &&
$state[
'isPassive'] ===
true) {
74 if ($this->skipPassive ===
true) {
78 $isPassive =
'passive-';
81 if (array_key_exists($this->attribute,
$state[
'Attributes'])) {
88 if (!array_key_exists(
'PreviousSSOTimestamp',
$state)) {
104 if (array_key_exists($direction,
$state)) {
105 if (isset(
$state[$direction][
'core:statistics-id'])) {
106 return $state[$direction][
'core:statistics-id'];
108 return $state[$direction][
'entityid'];
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
setIdentifier($direction, $state)
__construct($config, $reserved)
Initialize this filter.
process(&$state)
Log line.