40 parent::__construct(
$config, $reserved);
41 assert(
'is_array($config)');
44 $this->targetAttribute =
$config->getString(
'targetAttribute');
45 $this->sourceAttribute =
$config->getString(
'sourceAttribute');
55 assert(
'is_array($request)');
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 .
'.');
__construct($config, $reserved)
Initialize this filter, parse configuration.
Retrieve a scope from a source attribute and add it as a virtual target attribute.
Create styles array
The data for the language used.
static loadFromArray($config, $location='[ARRAY]', $instance=null)
Loads a configuration from the given array.
process(&$request)
Apply this filter.