Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403]
1 <?php 2 3 namespace IMSGlobal\LTI\Profile; 4 5 /** 6 * Class to represent a resource handler object 7 * 8 * @author Stephen P Vickers <svickers@imsglobal.org> 9 * @copyright IMS Global Learning Consortium Inc 10 * @date 2016 11 * @version 3.0.0 12 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0 13 */ 14 15 #[\AllowDynamicProperties] 16 class ResourceHandler 17 { 18 19 /** 20 * General details of resource handler. 21 * 22 * @var Item $item 23 */ 24 public $item = null; 25 /** 26 * URL of icon. 27 * 28 * @var string $icon 29 */ 30 public $icon = null; 31 /** 32 * Required Message objects for resource handler. 33 * 34 * @var array $requiredMessages 35 */ 36 public $requiredMessages = null; 37 /** 38 * Optional Message objects for resource handler. 39 * 40 * @var array $optionalMessages 41 */ 42 public $optionalMessages = null; 43 44 /** 45 * Class constructor. 46 * 47 * @param Item $item General details of resource handler 48 * @param string $icon URL of icon 49 * @param array $requiredMessages Array of required Message objects for resource handler 50 * @param array $optionalMessages Array of optional Message objects for resource handler 51 */ 52 function __construct($item, $icon, $requiredMessages, $optionalMessages) 53 { 54 55 $this->item = $item; 56 $this->icon = $icon; 57 $this->requiredMessages = $requiredMessages; 58 $this->optionalMessages = $optionalMessages; 59 60 } 61 62 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body