Source of file FailedURLRewriteSummary.php
Size: 0,619 Bytes - Last Modified: 2021-12-23T10:10:01+00:00
/var/www/docs.ssmods.com/process/src/code/models/FailedURLRewriteSummary.php
12345678910111213141516171819202122232425262728293031 | <?php /** * 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 <russ@silverstripe.com> * @package staticsiteconnector */ class FailedURLRewriteSummary extends DataObject { /** * * @var array */ private static $db = array( 'Text' => 'Text', 'ImportID' => 'Int' ); /** * * Format summary text so all totals are emboldened. * * @return string */ public function getText() { return preg_replace("#([\d]*)#", "<strong>$1</strong>", $this->getField('Text')); } } |