silverstripe-framework/tests/php/Dev/CsvBulkLoaderTest/CustomLoader.php
2016-12-19 16:08:19 +13:00

20 lines
418 B
PHP

<?php
namespace SilverStripe\Dev\Tests\CsvBulkLoaderTest;
use SilverStripe\Dev\CsvBulkLoader;
use SilverStripe\Dev\TestOnly;
class CustomLoader extends CsvBulkLoader implements TestOnly
{
public function importFirstName(&$obj, $val, $record)
{
$obj->FirstName = "Customized {$val}";
}
public function updatePlayer(&$obj, $val, $record)
{
$obj->FirstName .= $val . '. ';
}
}