Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 64... Línea 64...
64
    /**
64
    /**
65
     * Constructor
65
     * Constructor
66
     * @param \context $thiscontext the current context.
66
     * @param \context $thiscontext the current context.
67
     */
67
     */
68
    public function __construct(\context $thiscontext) {
68
    public function __construct(\context $thiscontext) {
69
        $this->allcontexts = array_values($thiscontext->get_parent_contexts(true));
69
        $this->allcontexts = [$thiscontext];
70
    }
70
    }
Línea 71... Línea 71...
71
 
71
 
72
    /**
72
    /**
73
     * Get all the contexts.
73
     * Get all the contexts.