Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
// This file is part of Moodle - http://moodle.org/
3
//
4
// Moodle is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8
//
9
// Moodle is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
16
 
17
/**
18
 * This file contains a class definition for the Tool Proxy service
19
 *
20
 * @package    ltiservice_toolproxy
21
 * @copyright  2014 Vital Source Technologies http://vitalsource.com
22
 * @author     Stephen Vickers
23
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24
 */
25
 
26
 
27
namespace ltiservice_toolproxy\local\service;
28
 
29
defined('MOODLE_INTERNAL') || die();
30
 
31
/**
32
 * A service implementing the Tool Proxy.
33
 *
34
 * @package    ltiservice_toolproxy
35
 * @since      Moodle 2.8
36
 * @copyright  2014 Vital Source Technologies http://vitalsource.com
37
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
38
 */
39
class toolproxy extends \mod_lti\local\ltiservice\service_base {
40
 
41
    /**
42
     * Class constructor.
43
     */
44
    public function __construct() {
45
 
46
        parent::__construct();
47
        $this->id = 'toolproxy';
48
        $this->name = 'Tool Proxy';
49
 
50
    }
51
 
52
    /**
53
     * Get the resources for this service.
54
     *
55
     * @return array
56
     */
57
    public function get_resources() {
58
 
59
        if (empty($this->resources)) {
60
            $this->resources = array();
61
            $this->resources[] = new \ltiservice_toolproxy\local\resources\toolproxy($this);
62
        }
63
 
64
        return $this->resources;
65
 
66
    }
67
 
68
}