Add warnings

This commit is contained in:
Nathan Gray 2011-12-20 17:03:05 +00:00
parent 7609e413bd
commit 2ac6626cdd
2 changed files with 34 additions and 0 deletions

View File

@ -86,6 +86,11 @@ class calendar_import_csv implements importexport_iface_import_plugin {
*/ */
private $user = null; private $user = null;
/**
* List of import warnings
*/
protected $warnings = array();
/** /**
* List of import errors * List of import errors
*/ */
@ -363,6 +368,18 @@ class calendar_import_csv implements importexport_iface_import_plugin {
// lets do it! // 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 * Returns errors that were encountered during importing
* Maximum of one error message per record, but you can append if you need to * Maximum of one error message per record, but you can append if you need to

View File

@ -83,6 +83,11 @@ class calendar_import_ical implements importexport_iface_import_plugin {
*/ */
private $user = null; private $user = null;
/**
* List of import warnings
*/
protected $warnings = array();
/** /**
* List of import errors * List of import errors
*/ */
@ -185,6 +190,18 @@ class calendar_import_ical implements importexport_iface_import_plugin {
// lets do it! // 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 * Returns errors that were encountered during importing
* Maximum of one error message per record, but you can append if you need to * Maximum of one error message per record, but you can append if you need to