19    protected $operators = array(
'<=',
'<',
'=',
'>=',
'>',
'<>',
'&',
'|');
 
   26        include_once 
'Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Factory/ilAssLacOperationManufacturer.php';
 
   27        include_once 
'Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Factory/ilAssLacExpressionManufacturer.php';
 
   37        if (
$nodes[
'type'] == 
'group') {
 
   42            foreach ($this->operators as $next_operator) {
 
   46                        if (!is_object(
$nodes[
'nodes'][
$i]) && 
$nodes[
'nodes'][
$i][
'type'] == 
'operator' && 
$nodes[
'nodes'][
$i][
'value'] == $next_operator) {
 
   53                        $operator = $operation_manufacture->manufacture(
$nodes[
'nodes'][
$index][
'value']);
 
   55                        $operator->setNegated(
$nodes[
"negated"]);
 
   59                        $new_nodes = array_slice(
$nodes[
'nodes'], 0, 
$index - 1);
 
   60                        $new_nodes[] = $operator;
 
   83        $expression = $node[
'nodes'][
$index];
 
   85            $expression = $manufacturer->manufacture($node[
'nodes'][
$index][
'value']);
 
An exception for terminatinating execution or to throw for unit testing.
__construct()
Construct requirements.
getExpression(array $node, $index)
Manufacure an expression from the delivered node and the index.
static _getInstance()
Get an Instance of ExpressionManufacturer.
static _getInstance()
Get an Instance of OperationManufacturer.