Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 40... Línea 40...
40
     *
40
     *
41
     * @param cm_info $cminfo The course module information.
41
     * @param cm_info $cminfo The course module information.
42
     * @param cm_completion_details $cmcompletion The course module information.
42
     * @param cm_completion_details $cmcompletion The course module information.
43
     */
43
     */
44
    public function __construct(
44
    public function __construct(
-
 
45
        /** @var cm_info $cminfo the activity cm_info. */
45
        protected cm_info $cminfo,
46
        protected cm_info $cminfo,
-
 
47
        /** @var cm_completion_details $cmcompletion the activity completion details. */
46
        protected cm_completion_details $cmcompletion
48
        protected cm_completion_details $cmcompletion,
-
 
49
        /** @var bool $smallbutton if the button is rendered small (like in course page). */
-
 
50
        protected bool $smallbutton = true,
47
    ) {
51
    ) {
48
    }
52
    }
Línea 49... Línea 53...
49
 
53
 
50
    /**
54
    /**
Línea 82... Línea 86...
82
            'overallincomplete' => !$isoverallcomplete,
86
            'overallincomplete' => !$isoverallcomplete,
83
            'withavailability' => $withavailability ?? false,
87
            'withavailability' => $withavailability ?? false,
84
            'overrideby' => $overrideby,
88
            'overrideby' => $overrideby,
85
            'completiondetails' => $this->get_completion_details($overrideby),
89
            'completiondetails' => $this->get_completion_details($overrideby),
86
            'accessibledescription' => $this->get_accessible_description($overrideby, $overallcompletion),
90
            'accessibledescription' => $this->get_accessible_description($overrideby, $overallcompletion),
-
 
91
            // For backward compatibility, the template uses small button by default when not set normal size.
-
 
92
            'normalbutton' => !$this->smallbutton,
87
        ];
93
        ];
88
    }
94
    }
Línea 89... Línea 95...
89
 
95
 
90
    /**
96
    /**