ChangeNameToValue

The Contact Form DB ChangeNameToValue class.

Defined (1)

The class is defined in the following location(s).

/phpunit/CFDBFilterParserTest.php  
  1. class ChangeNameToValue implements CFDBValueConverter { 
  2. var $name; 
  3. var $value; 
  4. function ChangeNameToValue($name, $value) { 
  5. $this->name = $name; 
  6. $this->value = $value; 
  7. public function convert($name) { 
  8. return $name == $this->name ? $this->value : $name;