silverstripe-framework/tests/php/Dev/CsvBulkLoaderTest/CustomLoader.php
2016-11-23 19:25:12 +13:00

20 lines
388 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 . '. ';
}
}