ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilAssLacCompositeEvaluator Class Reference

Class CompositeEvaluator. More...

+ Collaboration diagram for ilAssLacCompositeEvaluator:

Public Member Functions

 __construct ($object_loader, $activeId, $pass)
 
 evaluate (ilAssLacAbstractComposite $composite)
 

Protected Attributes

 $object_loader
 
 $activeId
 
 $pass
 

Private Member Functions

 isInstanceOfAnswerIndexProvidingExpression (ilAssLacAbstractComposite $composite)
 

Detailed Description

Class CompositeEvaluator.

Date: 07.01.14 Time: 13:27

Author
Thomas Joußen tjous.nosp@m.sen@.nosp@m.datab.nosp@m.ay.d.nosp@m.e

Definition at line 10 of file ilAssLacCompositeEvaluator.php.

Constructor & Destructor Documentation

◆ __construct()

ilAssLacCompositeEvaluator::__construct (   $object_loader,
  $activeId,
  $pass 
)
Parameters
ilAssLacQuestionProvider$object_loader
$activeId
$pass

Definition at line 33 of file ilAssLacCompositeEvaluator.php.

References $activeId, $object_loader, and $pass.

Member Function Documentation

◆ evaluate()

ilAssLacCompositeEvaluator::evaluate ( ilAssLacAbstractComposite  $composite)
Parameters
ilAssLacAbstractComposite$composite
Returns
bool

Definition at line 45 of file ilAssLacCompositeEvaluator.php.

46 {
47 if (count($composite->nodes) > 0) {
48 $composite->nodes[0] = $this->evaluate($composite->nodes[0]);
49 $composite->nodes[1] = $this->evaluate($composite->nodes[1]);
50 $composite = $this->evaluateSubTree($composite);
51 }
52 return $composite;
53 }
evaluate(ilAssLacAbstractComposite $composite)

References evaluate().

Referenced by evaluate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isInstanceOfAnswerIndexProvidingExpression()

ilAssLacCompositeEvaluator::isInstanceOfAnswerIndexProvidingExpression ( ilAssLacAbstractComposite  $composite)
private
Parameters
ilAssLacAbstractComposite$composite
Returns
bool

Definition at line 191 of file ilAssLacCompositeEvaluator.php.

192 {
193 if ($composite->nodes[0] instanceof ilAssLacResultOfAnswerOfQuestionExpression) {
194 return true;
195 }
196
197 if ($composite->nodes[0] instanceof ilAssLacResultOfAnswerOfCurrentQuestionExpression) {
198 return true;
199 }
200
201 return false;
202 }
Class ResultOfAnswerOfCurrentQuestion for the expression R[m].
Class ResultOfAnswerOfQuestion for the expression Qn[m].

Field Documentation

◆ $activeId

ilAssLacCompositeEvaluator::$activeId
protected

Definition at line 21 of file ilAssLacCompositeEvaluator.php.

Referenced by __construct().

◆ $object_loader

ilAssLacCompositeEvaluator::$object_loader
protected

Definition at line 16 of file ilAssLacCompositeEvaluator.php.

Referenced by __construct().

◆ $pass

ilAssLacCompositeEvaluator::$pass
protected

Definition at line 26 of file ilAssLacCompositeEvaluator.php.

Referenced by __construct().


The documentation for this class was generated from the following file: