Class CsvBulkLoader
Uses the fgetcsv() function to process CSV input. The input is expected to be UTF8.
- Object
-
ViewableData
implements
IteratorAggregate
-
BulkLoader
-
CsvBulkLoader
Direct known subclasses
Author: Ingo Schommer, Silverstripe Ltd. (<myfirstname>@silverstripe.com)
See: http://rfc.net/rfc4180.html
Located at sapphire/dev/CsvBulkLoader.php
Methods summary
protected
|
|
protected
|
|
public
unknown
|
#
findExistingObject( array $record )
Find an existing objects based on one or more uniqueness columns specified
via |
public
boolean
|
#
hasHeaderRow( )
Determine wether any loaded files should be parsed with a header-row
(otherwise we rely on |
Methods inherited from BulkLoader
Title(),
__construct(),
getImportSpec(),
getOptionFields(),
isNullValue(),
load(),
preview()
Methods inherited from ViewableData
ATT_val(),
BaseHref(),
CSSClasses(),
ColumnBreak(),
ColumnCalc(),
ColumnNumber(),
ColumnPad(),
ColumnPos(),
CurrentMember(),
CurrentPage(),
Debug(),
Even(),
EvenOdd(),
First(),
FirstLast(),
HasPerm(),
IsAjax(),
JS_val(),
Last(),
Me(),
Middle(),
MiddleString(),
Modulus(),
MultipleOf(),
Odd(),
Pos(),
RAW_val(),
SQL_val(),
ThemeDir(),
ThemeName(),
Top(),
TotalItems(),
XML_val(),
__get(),
__isset(),
__set(),
buildCastingCache(),
cachedCall(),
castingClass(),
castingHelper(),
castingHelperPair(),
castingObjectCreator(),
castingObjectCreatorPair(),
customise(),
defineMethods(),
escapeTypeForField(),
getField(),
getIterator(),
getSecurityID(),
getXMLValues(),
hasField(),
hasValue(),
i18nLocale(),
iteratorProperties(),
obj(),
renderWith(),
setCustomisedObj(),
setField()
Methods inherited from Object
__call(),
__toString(),
__wakeup(),
addMethodsFrom(),
addStaticVars(),
addWrapperMethod(),
add_extension(),
add_static_var(),
allMethodNames(),
cacheToFile(),
cacheToFileWithArgs(),
clearCache(),
combined_static(),
create(),
createMethod(),
create_from_string(),
exists(),
extInstance(),
extend(),
getCustomClass(),
getExtensionInstance(),
getExtensionInstances(),
get_extensions(),
get_static(),
hasExtension(),
hasMethod(),
has_extension(),
invokeWithExtensions(),
is_a(),
loadCache(),
parentClass(),
parse_class_spec(),
remove_extension(),
sanitiseCachename(),
saveCache(),
set_stat(),
set_static(),
set_uninherited(),
stat(),
strong_create(),
uninherited(),
uninherited_static(),
useCustomClass()
Magic methods summary
Properties summary
public
string
|
$delimiter |
#
Delimiter character (Default: comma). |
public
string
|
$enclosure |
#
Enclosure character (Default: doublequote) |
public
boolean
|
$hasHeaderRow |
#
Identifies if the has a header row. |
Properties inherited from BulkLoader
$columnMap,
$deleteExistingRecords,
$duplicateChecks,
$objectClass,
$relationCallbacks,
$title
Properties inherited from ViewableData
$casting,
$customisedObject,
$default_cast,
$failover,
$iteratorPos,
$iteratorTotalItems