function File::warnings in Bibliography Module 7.2
Same name and namespace in other branches
- 6.2 modules/marcParse/php-marc.php \File::warnings()
- 6 marcParse/php-marc.php \File::warnings()
- 7 modules/marcParse/php-marc.php \File::warnings()
Get warning(s)
Get either all warnings or a specific warning ID
Parameters
integer ID of the warning:
Return value
array|string Return either Array of all warnings or specific warning
File
- modules/
marcParse/ php-marc.php, line 133
Class
Code
function warnings($id = "") {
if (!$id) {
return $this->warn;
}
else {
if (array_key_exists($id, $this->warn)) {
return $this->warn[$id];
}
else {
return "Invalid warning ID: {$id}";
}
}
}