Proyectos de Subversion Moodle

Rev

Rev 338 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 338 Rev 339
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()
58
    public function addRegion($regionName)
-
 
59
    {
59
    {
60
 
60
        if (!in_array($this->regionName, $this->blockManager->get_regions())) {
61
        if (!in_array($this->regionName, $this->blockManager->get_regions())) {
61
            $this->blockManager->add_region($this->regionName);
62
            $this->blockManager->add_region($this->regionName);
62
        }
63
        }
Línea 63... Línea 64...
63
    }
64
    }
64
 
65
 
65
    public function validateIfExistBlocks()
66
    public function validateIfExistBlocks($regionName)
66
    {
67
    {
67
        $this->blockExists = true;
68
        $this->blockExists = true;
68
        $this->blocks = $this->blockManager->get_blocks_for_region($this->regionName);
69
        $this->blocks = $this->blockManager->get_blocks_for_region($this->regionName);