|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Collaboration diagram for ilAssLacConditionParser:Public Member Functions | |
| __construct () | |
| Construct requirements. More... | |
| 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 14 of file ilAssLacConditionParser.php.
| ilAssLacConditionParser::__construct | ( | ) |
Construct requirements.
Definition at line 56 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 112 of file ilAssLacConditionParser.php.
References 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 129 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 166 of file ilAssLacConditionParser.php.
References $index, and createNodeArray().
Referenced by createNodeArray(), and parse().
Here is the call graph for this function:
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 88 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 100 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 | ( | ) |
Definition at line 221 of file ilAssLacConditionParser.php.
References $expressions.
|
protected |
| int | $index |
Definition at line 250 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 70 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 229 of file ilAssLacConditionParser.php.
References $index.
Referenced by cannonicalizeCondition().
Here is the caller graph for this function:
|
protected |
Definition at line 21 of file ilAssLacConditionParser.php.
Referenced by parse().
|
protected |
Definition at line 29 of file ilAssLacConditionParser.php.
Referenced by getExpressions().
|
protected |
Definition at line 44 of file ilAssLacConditionParser.php.
Referenced by createNodeArray(), isNegationSurroundedByBrackets(), and surroundNegationExpression().
|
protected |
Definition at line 37 of file ilAssLacConditionParser.php.
|
protected |
Definition at line 51 of file ilAssLacConditionParser.php.