for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PhpTek\Exodus\Model;
use SilverStripe\Core\Injector\Injectable;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\FieldType\DBInt;
use SilverStripe\ORM\FieldType\DBText;
/**
* A model object that represents a single failed link-rewrite summary. This data is displayed
* at the top of the {@link FailedURLRewriteReport}.
*
* @author Russell Michell <[email protected]>
* @package phptek/silverstripe-exodus
*/
class FailedURLRewriteSummary extends DataObject
{
use Injectable;
* @var string
private static $table_name = 'FailedURLRewriteSummary';
$table_name
* @var array
private static $db = [
$db
'Text' => DBText::class,
'ImportID' => DBInt::class,
];
* Format summary text so all totals are emboldened.
* @return string
public function getText()
return preg_replace("#([\d]*)#", "<strong>$1</strong>", $this->getField('Text'));
}