ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
IMSGlobal\LTI\ToolProvider\Outcome Class Reference

Class to represent an outcome. More...

+ Collaboration diagram for IMSGlobal\LTI\ToolProvider\Outcome:

Public Member Functions

 __construct ($value=null)
 Class constructor. More...
 
 getValue ()
 Get the outcome value. More...
 
 setValue ($value)
 Set the outcome value. More...
 

Data Fields

 $language = null
 Language value. More...
 
 $status = null
 Outcome status value. More...
 
 $date = null
 Outcome date value. More...
 
 $type = null
 Outcome type value. More...
 
 $dataSource = null
 Outcome data source value. More...
 

Private Attributes

 $value = null
 Outcome value. More...
 

Detailed Description

Class to represent an outcome.

Author
Stephen P Vickers svick.nosp@m.ers@.nosp@m.imsgl.nosp@m.obal.nosp@m..org
Date
2016
Version
3.0.2 http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0

Definition at line 14 of file Outcome.php.

Constructor & Destructor Documentation

◆ __construct()

IMSGlobal\LTI\ToolProvider\Outcome::__construct (   $value = null)

Class constructor.

Parameters
string$valueOutcome value (optional, default is none)

Definition at line 60 of file Outcome.php.

References IMSGlobal\LTI\ToolProvider\Outcome\$value.

61  {
62 
63  $this->value = $value;
64  $this->language = 'en-US';
65  $this->date = gmdate('Y-m-d\TH:i:s\Z', time());
66  $this->type = 'decimal';
67 
68  }

Member Function Documentation

◆ getValue()

IMSGlobal\LTI\ToolProvider\Outcome::getValue ( )

Get the outcome value.

Returns
string Outcome value

Definition at line 75 of file Outcome.php.

References IMSGlobal\LTI\ToolProvider\Outcome\$value.

76  {
77 
78  return $this->value;
79 
80  }

◆ setValue()

IMSGlobal\LTI\ToolProvider\Outcome::setValue (   $value)

Set the outcome value.

Parameters
string$valueOutcome value

Definition at line 87 of file Outcome.php.

References IMSGlobal\LTI\ToolProvider\Outcome\$value.

88  {
89 
90  $this->value = $value;
91 
92  }

Field Documentation

◆ $dataSource

string IMSGlobal\LTI\ToolProvider\Outcome::$dataSource = null

Outcome data source value.

Definition at line 46 of file Outcome.php.

◆ $date

string IMSGlobal\LTI\ToolProvider\Outcome::$date = null

Outcome date value.

Definition at line 34 of file Outcome.php.

◆ $language

string IMSGlobal\LTI\ToolProvider\Outcome::$language = null

Language value.

Definition at line 22 of file Outcome.php.

◆ $status

string IMSGlobal\LTI\ToolProvider\Outcome::$status = null

Outcome status value.

Definition at line 28 of file Outcome.php.

◆ $type

string IMSGlobal\LTI\ToolProvider\Outcome::$type = null

Outcome type value.

Definition at line 40 of file Outcome.php.

◆ $value

string IMSGlobal\LTI\ToolProvider\Outcome::$value = null
private

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