Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 133... Línea 133...
133
    public function get_display_name(): string {
133
    public function get_display_name(): string {
134
        return get_string('pluginname', 'factor_'.$this->name);
134
        return get_string('pluginname', 'factor_'.$this->name);
135
    }
135
    }
Línea 136... Línea 136...
136
 
136
 
-
 
137
    /**
-
 
138
     * Returns factor short description from language string.
-
 
139
     *
-
 
140
     * Base class implementation.
-
 
141
     *
-
 
142
     * @return string
-
 
143
     * @throws \coding_exception
-
 
144
     */
-
 
145
    public function get_short_description(): string {
-
 
146
        return get_string('settings:shortdescription', 'factor_'.$this->name);
-
 
147
    }
-
 
148
 
137
    /**
149
    /**
138
     * Returns factor help from language string.
150
     * Returns factor help from language string.
139
     *
151
     *
140
     * Base class implementation.
152
     * Base class implementation.
141
     *
153
     *
Línea 420... Línea 432...
420
    public function show_setup_buttons(): bool {
432
    public function show_setup_buttons(): bool {
421
        return $this->has_setup();
433
        return $this->has_setup();
422
    }
434
    }
Línea 423... Línea 435...
423
 
435
 
-
 
436
    /**
-
 
437
     * Returns true if a button should be shown to add factors of the same kind on the preferences page.
-
 
438
     * For example, give user's the ability to set up multiple security keys.
-
 
439
     *
-
 
440
     * Override in child class if necessary.
-
 
441
     *
-
 
442
     * @return bool
-
 
443
     */
-
 
444
    public function show_additional_setup_button(): bool {
-
 
445
        return false;
-
 
446
    }
-
 
447
 
424
    /**
448
    /**
425
     * Returns true if a factor requires input from the user to verify.
449
     * Returns true if a factor requires input from the user to verify.
426
     *
450
     *
427
     * Override in child class if necessary
451
     * Override in child class if necessary
428
     *
452
     *
Línea 577... Línea 601...
577
    public function get_setup_string(): string {
601
    public function get_setup_string(): string {
578
        return get_string('setupfactor', 'tool_mfa');
602
        return get_string('setupfactor', 'tool_mfa');
579
    }
603
    }
Línea 580... Línea 604...
580
 
604
 
-
 
605
    /**
-
 
606
     * Gets the string for additional setup button on preferences page.
-
 
607
     * If the user has the ability to set up multiple security keys.
-
 
608
     *
-
 
609
     * Override in child class if necessary.
-
 
610
     *
-
 
611
     * @return string
-
 
612
     */
-
 
613
    public function get_additional_setup_string(): string {
-
 
614
        return get_string('setupfactorbuttonadditional', 'tool_mfa');
-
 
615
    }
-
 
616
 
581
    /**
617
    /**
582
     * Gets the string for manage button on preferences page.
618
     * Gets the string for manage button on preferences page.
583
     *
619
     *
584
     * @return string
620
     * @return string
585
     */
621
     */