| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
 Collaboration diagram for ilAssLacConditionParser:Public Member Functions | |
| parse ($condition) | |
| Parses the delivered condition and creates a composite tree Structure.  More... | |
| getExpressions () | |
Protected Member Functions | |
| fetchExpressions () | |
| Matches all expressions in the current condition and assign these to the class attribute ConditionParser::$expressions.  More... | |
| fetchOperators () | |
| Matches all operators in the current condition and assign these to the class attribute ConditionParser::$operators.  More... | |
| cannonicalizeCondition () | |
| Cannonicalize the condition into a more general form.  More... | |
| checkBrackets () | |
| createNodeArray () | |
| Creates an array representing all Nodes in a condition based on the fetched expressions and operators.  More... | |
| surroundNegationExpression ($index) | |
| isNegationSurroundedByBrackets ($index) | |
Protected Attributes | |
| $condition | |
| $expressions | |
| $operators | |
| $index | |
| $spaces | |
Definition at line 27 of file ilAssLacConditionParser.php.
      
  | 
  protected | 
Cannonicalize the condition into a more general form.
 It replaces all expression with "n" and all orperators with "o" 
 so that the result of an condition after cannonicalization could be:
 
 (n o n) o (n o n) o n 
Definition at line 120 of file ilAssLacConditionParser.php.
References $condition, ilAssLacExpressionManufacturer\_getInstance(), ilAssLacOperationManufacturer\_getInstance(), isNegationSurroundedByBrackets(), and surroundNegationExpression().
Referenced by parse().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 136 of file ilAssLacConditionParser.php.
Referenced by parse().
 Here is the caller graph for this function:
      
  | 
  protected | 
Creates an array representing all Nodes in a condition based on the fetched expressions and operators.
 The array has a tree representation which depth is dependent to the bracketing in the condition
 The array contains of four main keys to identify the elements:
 
 
| Key | Values | Description | 
|---|---|---|
| type | "group", "expression", "operator" | The type of the node - Group is used to introduce the next tree depth | 
| value | mixed | Contains an extracted expression or operation from a condition | 
| nodes | array | Contains an node array | 
Definition at line 171 of file ilAssLacConditionParser.php.
References Vendor\Package\$a, and $index.
Referenced by parse().
 Here is the caller graph for this function:
      
  | 
  protected | 
Matches all expressions in the current condition and assign these to the class attribute ConditionParser::$expressions.
Definition at line 94 of file ilAssLacConditionParser.php.
References ilAssLacExpressionManufacturer\_getInstance().
Referenced by parse().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Matches all operators in the current condition and assign these to the class attribute ConditionParser::$operators.
Definition at line 107 of file ilAssLacConditionParser.php.
References ilAssLacOperationManufacturer\_getInstance().
Referenced by parse().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilAssLacConditionParser::getExpressions | ( | ) | 
      
  | 
  protected | 
| int | $index | 
Definition at line 238 of file ilAssLacConditionParser.php.
References $index.
Referenced by cannonicalizeCondition().
 Here is the caller graph for this function:| ilAssLacConditionParser::parse | ( | $condition | ) | 
Parses the delivered condition and creates a composite tree Structure.
| $condition | 
Definition at line 74 of file ilAssLacConditionParser.php.
References $condition, cannonicalizeCondition(), checkBrackets(), createNodeArray(), fetchExpressions(), and fetchOperators().
 Here is the call graph for this function:
      
  | 
  protected | 
| int | $index | 
Definition at line 219 of file ilAssLacConditionParser.php.
References $index.
Referenced by cannonicalizeCondition().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 34 of file ilAssLacConditionParser.php.
Referenced by cannonicalizeCondition(), and parse().
      
  | 
  protected | 
Definition at line 42 of file ilAssLacConditionParser.php.
Referenced by getExpressions().
      
  | 
  protected | 
Definition at line 57 of file ilAssLacConditionParser.php.
Referenced by createNodeArray(), isNegationSurroundedByBrackets(), and surroundNegationExpression().
      
  | 
  protected | 
Definition at line 50 of file ilAssLacConditionParser.php.
      
  | 
  protected | 
Definition at line 64 of file ilAssLacConditionParser.php.