ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilAssLacResultOfAnswerOfCurrentQuestionExpression Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilAssLacResultOfAnswerOfCurrentQuestionExpression:
+ Collaboration diagram for ilAssLacResultOfAnswerOfCurrentQuestionExpression:

Public Member Functions

 getPattern ()
 Get the Pattern to match relevant informations for an Expression. More...
 
 getQuestionIndex ()
 
 getAnswerIndex ()
 
 getValue ()
 Get the value of this Expression. More...
 
 getDescription ()
 Get a human readable description of the Composite element. More...
 
- Public Member Functions inherited from ilAssLacAbstractExpression
 parseValue ($value)
 Parses the delivered Value and sets the relevant information for an Expression as attributes. More...
 
- Public Member Functions inherited from ilAssLacAbstractComposite
 addNode (ilAssLacCompositeInterface $node)
 Adds an ilAssLacCompositeInterface object to the node array which represents the condition tree structure. More...
 
 describe ()
 Describes a Composite tree Structure as human readable string. More...
 

Static Public Attributes

static $pattern = "/R\\[[0-9]+\\]/"
 
static $identifier = "R[m]"
 

Protected Member Functions

 setMatches ($matches)
 Sets the result of the parsed value by a specific expression pattern. More...
 
- Protected Member Functions inherited from ilAssLacAbstractExpression
 getPattern ()
 Get the Pattern to match relevant informations for an Expression. More...
 
 setMatches ($matches)
 Sets the result of the parsed value by a specific expression pattern. More...
 

Protected Attributes

 $answer_index
 

Additional Inherited Members

- Data Fields inherited from ilAssLacAbstractComposite
 $nodes = []
 

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 ResultOfAnswerOfCurrentQuestion for the expression R[m]

Date: 25.03.13 Time: 16:40

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

Definition at line 26 of file ilAssLacResultOfAnswerOfCurrentQuestionExpression.php.

Member Function Documentation

◆ getAnswerIndex()

ilAssLacResultOfAnswerOfCurrentQuestionExpression::getAnswerIndex ( )

◆ getDescription()

ilAssLacResultOfAnswerOfCurrentQuestionExpression::getDescription ( )

Get a human readable description of the Composite element.

Returns
string

Implements ilAssLacCompositeInterface.

Definition at line 103 of file ilAssLacResultOfAnswerOfCurrentQuestionExpression.php.

103  : string
104  {
105  return "Aktuelle Frage mit Anwort " . $this->answer_index . " beantwortet ";
106  }

◆ getPattern()

ilAssLacResultOfAnswerOfCurrentQuestionExpression::getPattern ( )

Get the Pattern to match relevant informations for an Expression.

Returns
string

Definition at line 57 of file ilAssLacResultOfAnswerOfCurrentQuestionExpression.php.

57  : string
58  {
59  return '/\[(\d+)\]/';
60  }

◆ getQuestionIndex()

ilAssLacResultOfAnswerOfCurrentQuestionExpression::getQuestionIndex ( )
Returns
int

Implements ilAssLacQuestionExpressionInterface.

Definition at line 77 of file ilAssLacResultOfAnswerOfCurrentQuestionExpression.php.

References null.

77  : ?int
78  {
79  return null;
80  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ getValue()

ilAssLacResultOfAnswerOfCurrentQuestionExpression::getValue ( )

Get the value of this Expression.

Returns
string

Implements ilAssLacExpressionInterface.

Definition at line 94 of file ilAssLacResultOfAnswerOfCurrentQuestionExpression.php.

94  : string
95  {
96  return 'R[' . $this->answer_index . ']';
97  }

◆ setMatches()

ilAssLacResultOfAnswerOfCurrentQuestionExpression::setMatches (   $matches)
protected

Sets the result of the parsed value by a specific expression pattern.

See also
ExpressionInterface::parseValue()
ExpressionInterface::getPattern()
Parameters
array$matches

Definition at line 69 of file ilAssLacResultOfAnswerOfCurrentQuestionExpression.php.

69  : void
70  {
71  $this->answer_index = $matches[1][0];
72  }

Field Documentation

◆ $answer_index

ilAssLacResultOfAnswerOfCurrentQuestionExpression::$answer_index
protected

◆ $identifier

ilAssLacResultOfAnswerOfCurrentQuestionExpression::$identifier = "R[m]"
static

◆ $pattern

ilAssLacResultOfAnswerOfCurrentQuestionExpression::$pattern = "/R\\[[0-9]+\\]/"
static

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