Proyectos de Subversion Moodle

Rev

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

Rev 280 Rev 281
Línea 74... Línea 74...
74
 
74
 
75
        // Si todos los bloques existen, devolvemos true.
75
        // Si todos los bloques existen, devolvemos true.
76
        return true;
76
        return true;
Línea 77... Línea 77...
77
    }
77
    }
78
 
78
 
79
    public function addBlocksIfNotExist($region)
79
    public function addBlocksIfNotExist()
80
    {
80
    {
Línea 81... Línea 81...
81
        // Obtener los bloques de la región actual.
81
        // Obtener los bloques de la región actual.
82
        $blocks = $this->blockManager->get_blocks_for_region($region);
82
        $blocks = $this->blockManager->get_blocks_for_region($this->$regionName);
Línea 83... Línea 83...
83
 
83
 
Línea 92... Línea 92...
92
                }
92
                }
93
            }
93
            }
Línea 94... Línea 94...
94
 
94
 
95
            // Si el bloque no está presente, lo añadimos.
95
            // Si el bloque no está presente, lo añadimos.
96
            if (!$blockFound) {
96
            if (!$blockFound) {
97
                $this->blockManager->add_block('block_' . $blockName, $region);
97
                $this->blockManager->add_block('block_' . $blockName, $this->$regionName);
98
            }
98
            }
99
        }
99
        }