See Release Notes
Long Term Support Release
Differences Between: [Versions 401 and 402] [Versions 401 and 403]
1 <?php 2 3 namespace IMSGlobal\LTI\ToolProvider; 4 5 /** 6 * Class to represent an outcome 7 * 8 * @author Stephen P Vickers <svickers@imsglobal.org> 9 * @copyright IMS Global Learning Consortium Inc 10 * @date 2016 11 * @version 3.0.2 12 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0 13 */ 14 class Outcome 15 { 16 17 /** 18 * Language value. 19 * 20 * @var string $language 21 */ 22 public $language = null; 23 /** 24 * Outcome status value. 25 * 26 * @var string $status 27 */ 28 public $status = null; 29 /** 30 * Outcome date value. 31 * 32 * @var string $date 33 */ 34 public $date = null; 35 /** 36 * Outcome type value. 37 * 38 * @var string $type 39 */ 40 public $type = null; 41 /** 42 * Outcome data source value. 43 * 44 * @var string $dataSource 45 */ 46 public $dataSource = null; 47 48 /** 49 * Outcome value. 50 * 51 * @var string $value 52 */ 53 private $value = null; 54 55 /** 56 * Class constructor. 57 * 58 * @param string $value Outcome value (optional, default is none) 59 */ 60 public function __construct($value = null) 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 } 69 70 /** 71 * Get the outcome value. 72 * 73 * @return string Outcome value 74 */ 75 public function getValue() 76 { 77 78 return $this->value; 79 80 } 81 82 /** 83 * Set the outcome value. 84 * 85 * @param string $value Outcome value 86 */ 87 public function setValue($value) 88 { 89 90 $this->value = $value; 91 92 } 93 94 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body