Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 152... Línea 152...
152
     * @return bool
152
     * @return bool
153
     */
153
     */
154
    public function allow_image_conversion() {
154
    public function allow_image_conversion() {
155
        return false;
155
        return false;
156
    }
156
    }
-
 
157
 
-
 
158
    /**
-
 
159
     * Summarise a submission for inclusion in messages.
-
 
160
     *
-
 
161
     * Moodle messages can be sent as either HTML or plain text, so you need to
-
 
162
     * produce two versions of the summary.
-
 
163
     *
-
 
164
     * If there is nothing in the submission from your plugin return an array of two empty strings.
-
 
165
     *
-
 
166
     * The plain text version should finish in a newline character.
-
 
167
     * The HTML version should have block-level elements like headings or <p>s as the outer elements.
-
 
168
     *
-
 
169
     * @param stdClass $submission the assign_submission record for the submission the message is about.
-
 
170
     * @return string[] with two elements, a plain text summary and an HTML summary.
-
 
171
     */
-
 
172
    public function submission_summary_for_messages(stdClass $submission): array {
-
 
173
        return ['', ''];
-
 
174
    }
157
}
175
}