Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php declare(strict_types=1);
2
 
3
namespace EduSharingApiClient;
4
 
5
/**
6
 * Class UrlHandling
7
 *
8
 * configure if urls included in the responses should be automatically configured to redirect the user to edu-sharing
9
 * When set to false, you need to handle Download + Replacing of LMS_INLINE_HELPER_SCRIPT by yourself
10
 *
11
 * @author Torsten Simon  <simon@edu-sharing.net>
12
 * @author Marian Ziegler <ziegler@edu-sharing.net>
13
 */
14
class UrlHandling
15
{
16
    public bool   $enabled;
17
    public string $endpointURL;
18
 
19
    /**
20
     * UrlHandling constructor
21
     *
22
     * @param bool $enabled
23
     * @param string $endpointURL
24
     */
25
    public function __construct(bool $enabled, string $endpointURL = "") {
26
        $this->enabled     = $enabled;
27
        $this->endpointURL = $endpointURL;
28
    }
29
}