Lumber.class.php
346 Bytes
<?php
namespace SH\Entities;
class Lumber extends \Cpeople\Classes\Block\Object
{
use \Sh\Traits\FunctionName;
function getText()
{
$result = $this->{'~PREVIEW_TEXT'};
if($result) $result = '<p>' . implode('</p><p>', array_filter(explode("\n", $this->{'~PREVIEW_TEXT'}))) . '</p>';
return $result;
}
}