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 Consumer Profile service
19
 *
20
 * @package    ltiservice_profile
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_profile\local\service;
28
 
29
defined('MOODLE_INTERNAL') || die();
30
 
31
/**
32
 * A service implementing the Tool Consumer Profile.
33
 *
34
 * @package    ltiservice_profile
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 profile extends \mod_lti\local\ltiservice\service_base {
40
 
41
    /**
42
     * Class constructor.
43
     */
44
    public function __construct() {
45
 
46
        parent::__construct();
47
        $this->id = 'profile';
48
        $this->name = 'Tool Consumer Profile';
49
        $this->unsigned = true;
50
 
51
    }
52
 
53
    /**
54
     * Get the resources for this service.
55
     *
56
     * @return array
57
     */
58
    public function get_resources() {
59
 
60
        if (empty($this->resources)) {
61
            $this->resources = array();
62
            $this->resources[] = new \ltiservice_profile\local\resources\profile($this);
63
        }
64
 
65
        return $this->resources;
66
 
67
    }
68
 
69
}