Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 54... Línea 54...
54
            ),
54
            ),
55
            'name' => array(
55
            'name' => array(
56
                'type' => PARAM_RAW,
56
                'type' => PARAM_RAW,
57
                'description' => 'The item name.',
57
                'description' => 'The item name.',
58
            ),
58
            ),
-
 
59
            'nameformat' => [
-
 
60
                'choices' => [FORMAT_HTML, FORMAT_MOODLE, FORMAT_PLAIN, FORMAT_MARKDOWN],
-
 
61
                'type' => PARAM_INT,
-
 
62
                'description' => 'The format of the item name.',
-
 
63
                'default' => FORMAT_HTML,
-
 
64
            ],
59
            'label' => array(
65
            'label' => array(
60
                'type' => PARAM_NOTAGS,
66
                'type' => PARAM_NOTAGS,
61
                'description' => 'The item label.',
67
                'description' => 'The item label.',
62
            ),
68
            ),
63
            'presentation' => array(
69
            'presentation' => array(
64
                'type' => PARAM_RAW,
70
                'type' => PARAM_RAW,
65
                'description' => 'The text describing the item or the available possible answers.',
71
                'description' => 'The text describing the item or the available possible answers.',
66
            ),
72
            ),
-
 
73
            'presentationformat' => [
-
 
74
                'choices' => [FORMAT_HTML, FORMAT_MOODLE, FORMAT_PLAIN, FORMAT_MARKDOWN],
-
 
75
                'type' => PARAM_INT,
-
 
76
                'description' => 'The format of the text describing the item or the available possible answers.',
-
 
77
                'default' => FORMAT_HTML,
-
 
78
            ],
67
            'typ' => array(
79
            'typ' => array(
68
                'type' => PARAM_ALPHA,
80
                'type' => PARAM_ALPHA,
69
                'description' => 'The type of the item.',
81
                'description' => 'The type of the item.',
70
            ),
82
            ),
71
            'hasvalue' => array(
83
            'hasvalue' => array(
Línea 156... Línea 168...
156
     */
168
     */
157
    protected function get_format_parameters_for_name() {
169
    protected function get_format_parameters_for_name() {
158
        return [
170
        return [
159
            'component' => 'mod_feedback',
171
            'component' => 'mod_feedback',
160
            'filearea' => 'item',
172
            'filearea' => 'item',
161
            'itemid' => $this->data->id
173
            'itemid' => $this->data->id,
-
 
174
            'options' => ['noclean' => true, 'para' => false],
162
        ];
175
        ];
163
    }
176
    }
Línea 164... Línea 177...
164
 
177
 
165
    /**
178
    /**
Línea 169... Línea 182...
169
     */
182
     */
170
    protected function get_format_parameters_for_presentation() {
183
    protected function get_format_parameters_for_presentation() {
171
        return [
184
        return [
172
            'component' => 'mod_feedback',
185
            'component' => 'mod_feedback',
173
            'filearea' => 'item',
186
            'filearea' => 'item',
174
            'itemid' => $this->data->id
187
            'itemid' => $this->data->id,
-
 
188
            'options' => ['noclean' => true, 'para' => false],
175
        ];
189
        ];
176
    }
190
    }
177
}
191
}