40 parent::__construct(
$config, $reserved);
44 $this->targetAttribute =
$config->getString(
'targetAttribute');
45 $this->sourceAttribute =
$config->getString(
'sourceAttribute');
56 assert(array_key_exists(
'Attributes',
$request));
73 $scopeIndex = strrpos($sourceAttrVal,
'@');
75 if ($scopeIndex !== FALSE) {
77 $scope = substr($sourceAttrVal, $scopeIndex+1);
80 $this->targetAttribute .
', with scope ' .
84 $this->sourceAttribute .
85 ' does not have a scope. Did not add attribute ' .
86 $this->targetAttribute .
'.');
foreach($paths as $path) $request
__construct($config, $reserved)
Initialize this filter, parse configuration.
Retrieve a scope from a source attribute and add it as a virtual target attribute.
if(array_key_exists('yes', $_REQUEST)) $attributes
static loadFromArray($config, $location='[ARRAY]', $instance=null)
Loads a configuration from the given array.
process(&$request)
Apply this filter.