Source for file Activityrule.php
Documentation is available at Activityrule.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
* @author Greg Swindle <greg@swindle.net>
* An ActivityRule represents a type of Rule that automatically executes an
* activity when it evaluates to TRUE.
* Evaluates a RuleContext. The RuleContext contains Propositions and Variables that have
* specific values. To apply the context, simply copy these values
* into the corresponding Propositions and Variables in the Rule. If the result of
* evaluation is TRUE, then the activity is executed.
* @param RuleContext $ruleContext
// The context contains Propositions and Variables that have
// specific values. To apply the context, simply copy these values
// into the corresponding Propositions and Variables in the Rule
if( $e->getType() ==
"Proposition" or $e->getType() ==
"Variable" ) {
$element =
$ruleContext->findElement( $e->name );
$e->value =
$element->value;
$proposition =
$this->process();
if ($proposition->value ==
TRUE){
/* End of file Activityrule.php */
/* Location: ./system/application/libraries/php-rules/Activityrule.php */
Documentation generated on Thu, 24 Mar 2011 21:27:37 -0500 by phpDocumentor 1.4.1