CFDBCompositeEvaluator

The Contact Form DB CFDBCompositeEvaluator class.

Defined (1)

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

/CFDBCompositeEvaluator.php  
  1. class CFDBCompositeEvaluator implements CFDBEvaluator { 
  2.  
  3. /** 
  4. * @var CFDBEvaluator[] 
  5. */ 
  6. var $evaluators; 
  7.  
  8. /** 
  9. * @param $evaluators CFDBEvaluator[] 
  10. */ 
  11. public function setEvaluators($evaluators) { 
  12. $this->evaluators = $evaluators; 
  13.  
  14. public function evaluate(&$data) { 
  15. if (is_array($this->evaluators)) { 
  16. foreach ($this->evaluators as $anEvaluator) { 
  17. if (!$anEvaluator->evaluate($data)) { 
  18. return false; 
  19. return true; 
  20.