Moodle PHP Documentation 4.4
Moodle 4.4.9+ (Build: 20250706) (82fb415b695)
core_reportbuilder\local\helpers\format Class Reference

Static Public Member Functions

static boolean_as_text (?bool $value)
 Returns yes/no string depending on the given value.
 
static percent (?float $value)
 Returns float value as a percentage.
 
static userdate (?int $value, stdClass $row, ?string $format=null)
 Returns formatted date.
 

Member Function Documentation

◆ boolean_as_text()

static core_reportbuilder\local\helpers\format::boolean_as_text ( ?bool $value)
static

Returns yes/no string depending on the given value.

Parameters
bool | null$value
Return values
string

◆ percent()

static core_reportbuilder\local\helpers\format::percent ( ?float $value)
static

Returns float value as a percentage.

Parameters
float | null$value
Return values
string

◆ userdate()

static core_reportbuilder\local\helpers\format::userdate ( ?int $value,
stdClass $row,
?string $format = null )
static

Returns formatted date.

Parameters
int | null$valueUnix timestamp
stdClass$row
string | null$formatFormat string for strftime
Return values
string

The documentation for this class was generated from the following file: