mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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
This commit is contained in:
parent
ed07c0acf2
commit
802b93be2e
@ -146,7 +146,8 @@ abstract class BulkLoader extends ViewableData {
|
|||||||
*
|
*
|
||||||
* @param string $filepath Absolute path to the file we're importing (with UTF8 content)
|
* @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
|
* @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:
|
* Array structure:
|
||||||
* - 'id': Database id of the created or updated record
|
* - 'id': Database id of the created or updated record
|
||||||
* - 'action': Performed action ('create', 'update')
|
* - 'action': Performed action ('create', 'update')
|
||||||
|
Loading…
Reference in New Issue
Block a user