|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 57 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 117 of file ilAssLacConditionParser.php.
References $i, 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 133 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 168 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 91 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 104 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 208 of file ilAssLacConditionParser.php.
References $expressions.
|
protected |
| int | $index |
Definition at line 235 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 72 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 216 of file ilAssLacConditionParser.php.
Referenced by cannonicalizeCondition().
Here is the caller graph for this function:
|
protected |
Definition at line 22 of file ilAssLacConditionParser.php.
Referenced by parse().
|
protected |
Definition at line 30 of file ilAssLacConditionParser.php.
Referenced by getExpressions().
|
protected |
Definition at line 45 of file ilAssLacConditionParser.php.
Referenced by createNodeArray(), isNegationSurroundedByBrackets(), and surroundNegationExpression().
|
protected |
Definition at line 38 of file ilAssLacConditionParser.php.
|
protected |
Definition at line 52 of file ilAssLacConditionParser.php.