Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 647... Línea 647...
647
     *
647
     *
648
     * @param int|null $type
648
     * @param int|null $type
649
     * @return array|string array if $type is not specified and single string if $type is specified
649
     * @return array|string array if $type is not specified and single string if $type is specified
650
     * @codeCoverageIgnore
650
     * @codeCoverageIgnore
651
     */
651
     */
652
    public static function get_select_types(int $type = null): array|string {
652
    public static function get_select_types(?int $type = null): array|string {
653
        $plugin = 'qtype_ordering';
653
        $plugin = 'qtype_ordering';
654
        $types = [
654
        $types = [
655
            self::SELECT_ALL => get_string('selectall', $plugin),
655
            self::SELECT_ALL => get_string('selectall', $plugin),
656
            self::SELECT_RANDOM => get_string('selectrandom', $plugin),
656
            self::SELECT_RANDOM => get_string('selectrandom', $plugin),
657
            self::SELECT_CONTIGUOUS => get_string('selectcontiguous', $plugin),
657
            self::SELECT_CONTIGUOUS => get_string('selectcontiguous', $plugin),
Línea 664... Línea 664...
664
     *
664
     *
665
     * @param int|null $type
665
     * @param int|null $type
666
     * @return array|string array if $type is not specified and single string if $type is specified
666
     * @return array|string array if $type is not specified and single string if $type is specified
667
     * @codeCoverageIgnore
667
     * @codeCoverageIgnore
668
     */
668
     */
669
    public static function get_layout_types(int $type = null): array|string {
669
    public static function get_layout_types(?int $type = null): array|string {
670
        $plugin = 'qtype_ordering';
670
        $plugin = 'qtype_ordering';
671
        $types = [
671
        $types = [
672
            self::LAYOUT_VERTICAL   => get_string('vertical',   $plugin),
672
            self::LAYOUT_VERTICAL   => get_string('vertical',   $plugin),
673
            self::LAYOUT_HORIZONTAL => get_string('horizontal', $plugin),
673
            self::LAYOUT_HORIZONTAL => get_string('horizontal', $plugin),
674
        ];
674
        ];
Línea 680... Línea 680...
680
     *
680
     *
681
     * @param int|null $type
681
     * @param int|null $type
682
     * @return array|string array if $type is not specified and single string if $type is specified
682
     * @return array|string array if $type is not specified and single string if $type is specified
683
     * @codeCoverageIgnore
683
     * @codeCoverageIgnore
684
     */
684
     */
685
    public static function get_grading_types(int $type = null): array|string {
685
    public static function get_grading_types(?int $type = null): array|string {
686
        $plugin = 'qtype_ordering';
686
        $plugin = 'qtype_ordering';
687
        $types = [
687
        $types = [
688
            self::GRADING_ALL_OR_NOTHING => get_string('allornothing', $plugin),
688
            self::GRADING_ALL_OR_NOTHING => get_string('allornothing', $plugin),
689
            self::GRADING_ABSOLUTE_POSITION => get_string('absoluteposition', $plugin),
689
            self::GRADING_ABSOLUTE_POSITION => get_string('absoluteposition', $plugin),
690
            self::GRADING_RELATIVE_TO_CORRECT => get_string('relativetocorrect', $plugin),
690
            self::GRADING_RELATIVE_TO_CORRECT => get_string('relativetocorrect', $plugin),
Línea 707... Línea 707...
707
     * @param string|null $style The specific numbering style to retrieve.
707
     * @param string|null $style The specific numbering style to retrieve.
708
     * @return array|string Numbering style(s).
708
     * @return array|string Numbering style(s).
709
     *                      The keys are style identifiers, and the values are the corresponding language strings.
709
     *                      The keys are style identifiers, and the values are the corresponding language strings.
710
     * @codeCoverageIgnore
710
     * @codeCoverageIgnore
711
     */
711
     */
712
    public static function get_numbering_styles(string $style = null): array|string {
712
    public static function get_numbering_styles(?string $style = null): array|string {
713
        $plugin = 'qtype_ordering';
713
        $plugin = 'qtype_ordering';
714
        $styles = [
714
        $styles = [
715
            'none' => get_string('numberingstylenone', $plugin),
715
            'none' => get_string('numberingstylenone', $plugin),
716
            'abc' => get_string('numberingstyleabc', $plugin),
716
            'abc' => get_string('numberingstyleabc', $plugin),
717
            'ABCD' => get_string('numberingstyleABCD', $plugin),
717
            'ABCD' => get_string('numberingstyleABCD', $plugin),