Add warnings

This commit is contained in:
Nathan Gray 2011-12-20 17:03:47 +00:00
parent 2ac6626cdd
commit ca8da3efc6

View File

@ -78,6 +78,11 @@ class resources_import_csv implements importexport_iface_import_plugin {
*/
private $user = null;
/**
* List of import warnings
*/
protected $warnings = array();
/**
* List of import errors
*/
@ -309,6 +314,18 @@ class resources_import_csv implements importexport_iface_import_plugin {
// lets do it!
}
/**
* Returns warnings that were encountered during importing
* Maximum of one warning message per record, but you can append if you need to
*
* @return Array (
* record_# => warning message
* )
*/
public function get_warnings() {
return $this->warnings;
}
/**
* Returns errors that were encountered during importing
* Maximum of one error message per record, but you can append if you need to