Source for file Ruleset.php
Documentation is available at Ruleset.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// Each Rule in the RuleSet is evaluated, and the
// results ANDed together taking account of any RuleOverrides
$resultsForRules =
array();
// Accumulate the results of evaluating the Rules
foreach( $this->rules as $r ) {
$result =
$r->evaluate( $ruleContext );
$resultsForRules[ $r->name ] =
$result;
// Apply the RuleOverrides
$result =
$resultsForRules[ $ro->ruleName ];
$result->value =
$ro->value;
// Work out the final result
$finalResult =
( $finalResult and $res->value );
/* End of file Ruleset.php */
/* Location: ./system/application/libraries/php-rules/Ruleset.php */
Documentation generated on Thu, 24 Mar 2011 21:27:42 -0500 by phpDocumentor 1.4.1