From 802b93be2ef49225896a96df3a2cd73d50b6a611 Mon Sep 17 00:00:00 2001 From: Saophalkun Ponlu Date: Wed, 20 Aug 2008 02:29:37 +0000 Subject: [PATCH] modified csv import function documention. It returns number of affected records. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@61120 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- dev/BulkLoader.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev/BulkLoader.php b/dev/BulkLoader.php index cd427d3c0..6fb7d5aad 100644 --- a/dev/BulkLoader.php +++ b/dev/BulkLoader.php @@ -146,7 +146,8 @@ abstract class BulkLoader extends ViewableData { * * @param string $filepath Absolute path to the file we're importing (with UTF8 content) * @param boolean $preview If true, we'll just output a summary of changes but not actually do anything - * @return array Information about the import process, with each row matching a created or updated DataObject. + * @return int Number of affected records + * It used to return this, but it was never used and memory inefficient. array Information about the import process, with each row matching a created or updated DataObject. * Array structure: * - 'id': Database id of the created or updated record * - 'action': Performed action ('create', 'update')