Proyectos de Subversion Moodle

Rev

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

Rev 286 Rev 338
Línea 53... Línea 53...
53
        $PAGE->set_context(context_user::instance($this->userID));
53
        $PAGE->set_context(context_user::instance($this->userID));
54
        $PAGE->set_pagelayout('mydashboard');
54
        $PAGE->set_pagelayout('mydashboard');
55
        $PAGE->set_title("{$SITE->shortname}: " . $this->title);
55
        $PAGE->set_title("{$SITE->shortname}: " . $this->title);
56
    }
56
    }
Línea 57... Línea 57...
57
 
57
 
58
    public function addRegion($regionName)
58
    public function addRegion()
59
    {
59
    {
60
        if (!in_array($this->regionName, $this->blockManager->get_regions())) {
60
        if (!in_array($this->regionName, $this->blockManager->get_regions())) {
61
            $this->blockManager->add_region($this->regionName);
61
            $this->blockManager->add_region($this->regionName);
62
        }
62
        }
Línea 63... Línea 63...
63
    }
63
    }
64
 
64
 
65
    public function validateIfExistBlocks($regionName)
65
    public function validateIfExistBlocks()
66
    {
66
    {
67
        $this->blockExists = true;
67
        $this->blockExists = true;
68
        $this->blocks = $this->blockManager->get_blocks_for_region($this->regionName);
68
        $this->blocks = $this->blockManager->get_blocks_for_region($this->regionName);