Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 245... Línea 245...
245
     *
245
     *
246
     * @param string $alt The alt text to use for the icon
246
     * @param string $alt The alt text to use for the icon
247
     * @param array $attributes html attributes
247
     * @param array $attributes html attributes
248
     * @return pix_icon
248
     * @return pix_icon
249
     */
249
     */
250
    public function get_icon($alt, array $attributes = null) {
250
    public function get_icon($alt, ?array $attributes = null) {
251
        global $COMPLETION_CRITERIA_TYPES;
251
        global $COMPLETION_CRITERIA_TYPES;
Línea 252... Línea 252...
252
 
252
 
253
        $criteriatype = $COMPLETION_CRITERIA_TYPES[$this->criteriatype];
253
        $criteriatype = $COMPLETION_CRITERIA_TYPES[$this->criteriatype];
254
        return new pix_icon('i/'.$criteriatype, $alt, 'moodle', $attributes);
254
        return new pix_icon('i/'.$criteriatype, $alt, 'moodle', $attributes);