Proyectos de Subversion Moodle

Rev

Rev 379 | Rev 383 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 379 Rev 380
Línea 1... Línea 1...
1
<?php
1
<?php
Línea 2... Línea 2...
2
 
2
 
3
class StaticsBlocks
3
class StaticsBlocks
4
{
4
{
5
    public $user;
-
 
6
    public $title;
5
    public $user;
7
    public $userID;
6
    public $userID;
8
    public $currentUser;
7
    public $currentUser;
9
    public $blockManager;
8
    public $blockManager;
10
    public $blockExists;
9
    public $blockExists;
11
    public $blockNames;
10
    public $blockNames;
Línea 12... Línea 11...
12
    public $regionName;
11
    public $regionName;
13
 
12
 
14
    public function __construct($title, $blockNames, $regionName)
13
    public function __construct($blockNames, $regionName)
15
    {
14
    {
Línea 16... Línea 15...
16
        global $USER, $PAGE;
15
        global $USER, $PAGE;
Línea 21... Línea 20...
21
        }
20
        }
Línea 22... Línea 21...
22
 
21
 
23
        $this->userID = optional_param('userid', $USER->id, PARAM_INT);
22
        $this->userID = optional_param('userid', $USER->id, PARAM_INT);
24
        $this->currentUser = $this->userID == $USER->id;
23
        $this->currentUser = $this->userID == $USER->id;
25
        $this->user = core_user::get_user($this->userID);
-
 
26
        $this->title = get_string($title);
24
        $this->user = core_user::get_user($this->userID);
27
        $this->blockManager = $PAGE->blocks;
25
        $this->blockManager = $PAGE->blocks;
28
        $this->blockNames = $blockNames;
26
        $this->blockNames = $blockNames;
Línea 29... Línea 27...
29
        $this->regionName = $regionName;
27
        $this->regionName = $regionName;