Class SqlFileLoaderStrategy

Description

Strategy pattern for loading a RuleContext from a file in the format

Strategy pattern for loading a RuleContext from a file in the format

Rule_Element_Type|Rule_Element_Name|SQL_Statement|Expected_Return_Data_Type_from_SQL_Query

Located in /strategy/Sqlfileloaderstrategy.php (line 9)

RuleContextLoaderStrategy
   |
   --SqlFileLoaderStrategy
Variable Summary
Method Summary
SqlFileLoaderStrategy SqlFileLoaderStrategy ()
void getRuleElementValue ( $tokens,  $args)
RuleContext loadRuleContext (string $fileName, int $id)
void processRuleContextStatement ( $tokens,  $args)
Variables
Rule $rule (line 14)
  • access: public
RuleContext $ruleContext (line 19)
  • access: public
Methods
Constructor SqlFileLoaderStrategy (line 24)

Constructor.

Constructor.

  • access: public
SqlFileLoaderStrategy SqlFileLoaderStrategy ()
getRuleElementValue (line 49)
  • access: protected
void getRuleElementValue ( $tokens,  $args)
  • $tokens
  • $args

Redefinition of:
RuleContextLoaderStrategy::getRuleElementValue()
loadRuleContext (line 34)

Load a RuleContext based on the elements listed in $fileName

Load a RuleContext based on the elements listed in $fileName

  • access: public
RuleContext loadRuleContext (string $fileName, int $id)
  • string $fileName: The path to a *.sql.con file.
  • int $id

Redefinition of:
RuleContextLoaderStrategy::loadRuleContext()
processRuleContextStatement (line 67)
  • access: protected
void processRuleContextStatement ( $tokens,  $args)
  • $tokens
  • $args

Redefinition of:
RuleContextLoaderStrategy::processRuleContextStatement()

Inherited Methods

Inherited From RuleContextLoaderStrategy

RuleContextLoaderStrategy::RuleContextLoaderStrategy()
RuleContextLoaderStrategy::getRuleElementValue()
RuleContextLoaderStrategy::getStatements()
RuleContextLoaderStrategy::isCommentStatement()
RuleContextLoaderStrategy::loadRule()
RuleContextLoaderStrategy::loadRuleContext()
RuleContextLoaderStrategy::processOperator()
RuleContextLoaderStrategy::processRuleContextStatement()
RuleContextLoaderStrategy::processRuleStatement()

Documentation generated on Thu, 24 Mar 2011 21:27:43 -0500 by phpDocumentor 1.4.1