mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Compare commits
4 Commits
00019be6ad
...
7316d1f3f7
Author | SHA1 | Date | |
---|---|---|---|
|
7316d1f3f7 | ||
|
a81b7855de | ||
|
e93dafb2fe | ||
|
4a6a3d19af |
@ -4,6 +4,7 @@ namespace SilverStripe\Logging;
|
||||
|
||||
use Monolog\Formatter\FormatterInterface;
|
||||
use Monolog\Handler\AbstractProcessingHandler;
|
||||
use Monolog\Level;
|
||||
use Monolog\LogRecord;
|
||||
use SilverStripe\Control\Controller;
|
||||
use SilverStripe\Control\Director;
|
||||
@ -34,9 +35,9 @@ class HTTPOutputHandler extends AbstractProcessingHandler
|
||||
*/
|
||||
private $cliFormatter = null;
|
||||
|
||||
public function __construct()
|
||||
public function __construct(int|string|Level $level = Level::Debug, bool $bubble = true)
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct($level, $bubble);
|
||||
Deprecation::withSuppressedNotice(function () {
|
||||
Deprecation::notice(
|
||||
'5.4.0',
|
||||
|
@ -64,7 +64,13 @@ class DBInt extends DBField
|
||||
{
|
||||
return sprintf('%d', $this->value);
|
||||
}
|
||||
|
||||
|
||||
public function SpelledOut()
|
||||
{
|
||||
$v = $this->prepValueForDB($this->value);
|
||||
return (new NumberFormatter(i18n::get_locale(), NumberFormatter::SPELLOUT))->format($v);
|
||||
}
|
||||
|
||||
public function scaffoldFormField($title = null, $params = null)
|
||||
{
|
||||
return NumericField::create($this->name, $title);
|
||||
|
Loading…
x
Reference in New Issue
Block a user