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
 * Saves screen data from user device into the current record / if possible
19
 *
20
 * @see        storage_helper_page
21
 * @package    report_training
22
 * @copyright  2016 Mark Heumueller <mark.heumueller@gmx.de>
23
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24
 */
25
 
26
require_once('lib.php');
27
require_sesskey();
28
 
29
$insertid = required_param('insertid', PARAM_INT);
30
$devicedisplaysizex = required_param('device_display_size_x', PARAM_INT);
31
$devicedisplaysizey = required_param('device_display_size_y', PARAM_INT);
32
$devicewindowsizex = required_param('device_window_size_x', PARAM_INT);
33
$devicewindowsizey = required_param('device_window_size_y', PARAM_INT);
34
 
35
$datastorage = new training_data_storage();
36
$datastorage->report_training_update_screensize(
37
    $insertid,
38
    $devicedisplaysizex,
39
    $devicedisplaysizey,
40
    $devicewindowsizex,
41
    $devicewindowsizey
42
);