Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
 
3
namespace IMSGlobal\LTI\ToolProvider;
4
 
5
/**
6
 * Class to represent a content-item placement object
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
#[\AllowDynamicProperties]
15
class ContentItemPlacement
16
{
17
 
18
/**
19
 * Class constructor.
20
 *
21
 * @param int $displayWidth       Width of item location
22
 * @param int $displayHeight      Height of item location
23
 * @param string $documentTarget  Location to open content in
24
 * @param string $windowTarget    Name of window target
25
 */
26
    function __construct($displayWidth, $displayHeight, $documentTarget, $windowTarget)
27
    {
28
 
29
        if (!empty($displayWidth)) {
30
            $this->displayWidth = $displayWidth;
31
        }
32
        if (!empty($displayHeight)) {
33
            $this->displayHeight = $displayHeight;
34
        }
35
        if (!empty($documentTarget)) {
36
            $this->documentTarget = $documentTarget;
37
        }
38
        if (!empty($windowTarget)) {
39
            $this->windowTarget = $windowTarget;
40
        }
41
 
42
    }
43
 
44
}