Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 48... Línea 48...
48
     *
48
     *
49
     * @param bool $available True if available
49
     * @param bool $available True if available
50
     * @param tree_node $node Node if failed & should be displayed
50
     * @param tree_node $node Node if failed & should be displayed
51
     * @param result[] $failedchildren Array of children who failed too
51
     * @param result[] $failedchildren Array of children who failed too
52
     */
52
     */
53
    public function __construct($available, tree_node $node = null,
53
    public function __construct($available, ?tree_node $node = null,
54
            array $failedchildren = array()) {
54
            array $failedchildren = array()) {
55
        $this->available = $available;
55
        $this->available = $available;
56
        if (!$available) {
56
        if (!$available) {
57
            if ($node) {
57
            if ($node) {
58
                $this->shownodes[spl_object_hash($node)] = $node;
58
                $this->shownodes[spl_object_hash($node)] = $node;