Add warnings

This commit is contained in:
Nathan Gray 2011-12-20 17:02:49 +00:00
parent b47274d508
commit 7609e413bd

View File

@ -82,6 +82,11 @@ class addressbook_import_contacts_csv implements importexport_iface_import_plugi
*/
private $user = null;
/**
* List of import warnings
*/
protected $warnings = array();
/**
* List of import errors
*/
@ -383,6 +388,18 @@ class addressbook_import_contacts_csv implements importexport_iface_import_plugi
// 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