ILIAS
trunk Revision v5.2.0beta1-34115-g3a2438be29
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
create (array $nodes) | |
Creates a composite tree structure from a nodes tree. More... | |
Protected Attributes | |
$operators = array('<=','<','=','>=','>','<>','&','|') | |
Private Member Functions | |
getExpression (array $node, $index) | |
Manufacure an expression from the delivered node and the index. More... | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class CompositeBuilder
Date: 27.03.13 Time: 12:18
Definition at line 26 of file ilAssLacCompositeBuilder.php.
ilAssLacCompositeBuilder::create | ( | array | $nodes | ) |
Creates a composite tree structure from a nodes tree.
May fail on malformed input, e.g. because not all operators could be handled. So ensure only to call this function with well-formed input data or be prepared to handle type exceptions.
array | $nodes | an array structure of parsed nodes as returned by ilAssLacConditionParser::createNodeArray(), with type 'group'. |
ilAssLacCompositeBuilderException | in some cases of invalid input. |
Definition at line 53 of file ilAssLacCompositeBuilder.php.
References $i, ILIAS\LTI\ToolProvider\$key, ilAssLacOperationManufacturer\_getInstance(), and getExpression().
|
private |
Manufacure an expression from the delivered node and the index.
If an expression already exist in the node for
for the delivered index, this function will return the existing expression
array | $node | |
int | $index |
Definition at line 101 of file ilAssLacCompositeBuilder.php.
References ilAssLacExpressionManufacturer\_getInstance().
Referenced by create().
|
protected |
Definition at line 34 of file ilAssLacCompositeBuilder.php.