From 7609e413bde103c220450beec4a5515df760c3f5 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 20 Dec 2011 17:02:49 +0000 Subject: [PATCH] Add warnings --- ...lass.addressbook_import_contacts_csv.inc.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/addressbook/inc/class.addressbook_import_contacts_csv.inc.php b/addressbook/inc/class.addressbook_import_contacts_csv.inc.php index 51261a92ee..6fcb0304de 100644 --- a/addressbook/inc/class.addressbook_import_contacts_csv.inc.php +++ b/addressbook/inc/class.addressbook_import_contacts_csv.inc.php @@ -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