Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 186... Línea 186...
186
        $definition = $xmlentry['#']['DEFINITION'][0]['#'];
186
        $definition = $xmlentry['#']['DEFINITION'][0]['#'];
187
        if (!is_string($definition)) {
187
        if (!is_string($definition)) {
188
            throw new \moodle_exception('errorparsingxml', 'glossary');
188
            throw new \moodle_exception('errorparsingxml', 'glossary');
189
        }
189
        }
190
        $newentry->definition = trusttext_strip($definition);
190
        $newentry->definition = trusttext_strip($definition);
-
 
191
 
-
 
192
        if (isset($xmlentry['#']['DEFINITIONTRUST'][0]['#'])) {
-
 
193
            $newentry->definitiontrust = !empty($xmlentry['#']['DEFINITIONTRUST'][0]['#']) && trusttext_trusted($context);
-
 
194
        }
-
 
195
 
191
        if ( isset($xmlentry['#']['CASESENSITIVE'][0]['#']) ) {
196
        if ( isset($xmlentry['#']['CASESENSITIVE'][0]['#']) ) {
192
            $newentry->casesensitive = $xmlentry['#']['CASESENSITIVE'][0]['#'];
197
            $newentry->casesensitive = $xmlentry['#']['CASESENSITIVE'][0]['#'];
193
        } else {
198
        } else {
194
            $newentry->casesensitive = $CFG->glossary_casesensitive;
199
            $newentry->casesensitive = $CFG->glossary_casesensitive;
195
        }
200
        }
Línea 322... Línea 327...
322
    // Reset caches.
327
    // Reset caches.
323
    \mod_glossary\local\concept_cache::reset_glossary($glossary);
328
    \mod_glossary\local\concept_cache::reset_glossary($glossary);
Línea 324... Línea 329...
324
 
329
 
325
    // processed entries
330
    // processed entries
326
    echo $OUTPUT->box_start('glossarydisplay generalbox');
331
    echo $OUTPUT->box_start('glossarydisplay generalbox');
327
    echo '<table class="glossaryimportexport">';
332
    echo '<table class="glossaryimportexport table-reboot">';
328
    echo '<tr>';
333
    echo '<tr>';
329
    echo '<td width="50%" align="right">';
334
    echo '<td width="50%" align="right">';
330
    echo get_string("totalentries","glossary");
335
    echo get_string("totalentries","glossary");
331
    echo ':</td>';
336
    echo ':</td>';
Línea 357... Línea 362...
357
    echo '</table><hr />';
362
    echo '</table><hr />';
Línea 358... Línea 363...
358
 
363
 
359
    // rejected entries
364
    // rejected entries
360
    if ($rejections) {
365
    if ($rejections) {
361
        echo $OUTPUT->heading(get_string("rejectionrpt","glossary"), 4);
366
        echo $OUTPUT->heading(get_string("rejectionrpt","glossary"), 4);
362
        echo '<table class="glossaryimportexport">';
367
        echo '<table class="glossaryimportexport table-reboot">';
363
        echo $rejections;
368
        echo $rejections;
364
        echo '</table><hr />';
369
        echo '</table><hr />';
365
    }
370
    }
366
/// Print continue button, based on results
371
/// Print continue button, based on results