Version: current

# Class GroupCsvBulkLoader

  Object
  ViewableData implements IteratorAggregate
  BulkLoader
  CsvBulkLoader
  GroupCsvBulkLoader

Package: sapphire\security
Located at sapphire/security/GroupCsvBulkLoader.php

## Methods summary

`public` | # `__construct( mixed $objectClass = null )` #### Overrides `BulkLoader::__construct`
`public` | # `processRecord( array $record, array $columnMap, mixed & $results, boolean $preview = false )` #### Parameters $record array $record An map of the data, keyed by the header field defined in `BulkLoader::$columnMap` $columnMap array $columnMap $results $result BulkLoader_Result (passed as reference) $preview boolean $preview #### Overrides `CsvBulkLoader::processRecord`

### Methods inherited from CsvBulkLoader

`findExistingObject()`, `hasHeaderRow()`, `processAll()`

### Methods inherited from BulkLoader

`Title()`, `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 array` | $duplicateChecks | # Specifies how to determine duplicates based on one or more provided fields in the imported data, matching to properties on the used `DataObject` class. Alternatively the array values can contain a callback method (see example for implementation details). The callback method should be defined on the source class. Specifies how to determine duplicates based on one or more provided fields in the imported data, matching to properties on the used `DataObject` class. Alternatively the array values can contain a callback method (see example for implementation details). The callback method should be defined on the source class. NOTE: If you're trying to get a unique Member record by a particular field that isn't Email, you need to ensure that Member is correctly set to the unique field you want, as it will merge any duplicates during `Member::onBeforeWrite()`. `Member::set_unique_identifier_field()`. If multiple checks are specified, the first one "wins".
    <?php
    array(
                    'customernumber' => 'ID',
                    'phonenumber' => array(
                            'callback' => 'getByImportedPhoneNumber'
                    )
    );
    ?>

### Properties inherited from CsvBulkLoader

`$delimiter`, `$enclosure`, `$hasHeaderRow`

### Properties inherited from BulkLoader

`$columnMap`, `$deleteExistingRecords`, `$objectClass`, `$relationCallbacks`, `$title`

### Properties inherited from ViewableData

`$casting`, `$customisedObject`, `$default_cast`, `$failover`, `$iteratorPos`, `$iteratorTotalItems`

### Properties inherited from Object

`$class`, `$extension_instances`, `$extensions`

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -