Source for file Rulecontextloaderstrategy.php
Documentation is available at Rulecontextloaderstrategy.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
foreach( $statements as $statement ) {
$statementType =
count( $tokens );
if ( $statementType ==
$OPERATOR ) {
elseif ( $statementType ==
$STATEMENT ) {
if( $tokens[ 1 ] ==
'IS' ) {
$ruleOrRuleContext->addProposition( $tokens[ 0 ], (bool)
$tokens[ 1 ] );
elseif( $tokens[ 1 ] ==
'EQUALS' ) {
$ruleOrRuleContext->addVariable( $tokens[ 0 ], $tokens[ 2 ] );
$ruleOrRuleContext->addOperator( $tokens[ 0 ] );
$ruleFile =
fopen( $fileName, 'r' );
while( !feof( $ruleFile ) ) {
die( 'Failed to open stream: ' .
$fileName .
' does not exist.' );
return ( strstr( $text, '#' ) ==
$text );
/* End of file Ruleloader.php */
/* Location: ./system/application/libraries/Phprules/strategy/Rulecontextloaderstrategy.php */
Documentation generated on Thu, 24 Mar 2011 21:27:40 -0500 by phpDocumentor 1.4.1