Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 226... Línea 226...
226
        foreach ($rows as $elementdata) {
226
        foreach ($rows as $elementdata) {
227
            // Check if all the required fields are there.
227
            // Check if all the required fields are there.
228
            foreach ($entityinfo['required'] as $requiredfield) {
228
            foreach ($entityinfo['required'] as $requiredfield) {
229
                if (!isset($elementdata[$requiredfield])) {
229
                if (!isset($elementdata[$requiredfield])) {
230
                    throw new Exception($this->name_for_errors($generatortype) .
230
                    throw new Exception($this->name_for_errors($generatortype) .
231
                            ' requires the field ' . $requiredfield . ' to be specified');
231
                            ' requires the field "' . $requiredfield . '" to be specified');
232
                }
232
                }
233
            }
233
            }
Línea 234... Línea 234...
234
 
234
 
235
            // Switch from human-friendly references to ids.
235
            // Switch from human-friendly references to ids.