You are here

public function FieldMapEnhancer::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony-cmf/routing/Enhancer/FieldMapEnhancer.php \Symfony\Cmf\Component\Routing\Enhancer\FieldMapEnhancer::__construct()

Parameters

string $source the field to read:

string $target the field to write the result of the lookup into:

array $hashmap for looking up value from source and get value for target:

File

vendor/symfony-cmf/routing/Enhancer/FieldMapEnhancer.php, line 42

Class

FieldMapEnhancer
This enhancer can fill one field with the result of a hashmap lookup of another field. If the target field is already set, it does nothing.

Namespace

Symfony\Cmf\Component\Routing\Enhancer

Code

public function __construct($source, $target, array $hashmap) {
  $this->source = $source;
  $this->target = $target;
  $this->hashmap = $hashmap;
}