ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilAssLacCompositeEvaluator Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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

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 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 26 of file ilAssLacCompositeEvaluator.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 48 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 60 of file ilAssLacCompositeEvaluator.php.

61 {
62 if (count($composite->nodes) > 0) {
63 $composite->nodes[0] = $this->evaluate($composite->nodes[0]);
64 $composite->nodes[1] = $this->evaluate($composite->nodes[1]);
65 $composite = $this->evaluateSubTree($composite);
66 }
67 return $composite;
68 }
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 219 of file ilAssLacCompositeEvaluator.php.

219 : bool
220 {
221 if ($composite->nodes[0] instanceof ilAssLacResultOfAnswerOfQuestionExpression) {
222 return true;
223 }
224
225 if ($composite->nodes[0] instanceof ilAssLacResultOfAnswerOfCurrentQuestionExpression) {
226 return true;
227 }
228
229 return false;
230 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Field Documentation

◆ $activeId

ilAssLacCompositeEvaluator::$activeId
protected

Definition at line 36 of file ilAssLacCompositeEvaluator.php.

Referenced by __construct().

◆ $object_loader

ilAssLacCompositeEvaluator::$object_loader
protected

Definition at line 31 of file ilAssLacCompositeEvaluator.php.

Referenced by __construct().

◆ $pass

ilAssLacCompositeEvaluator::$pass
protected

Definition at line 41 of file ilAssLacCompositeEvaluator.php.

Referenced by __construct().


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