|
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.
|
|
◆ 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
-
- Return values
-
◆ percent()
static core_reportbuilder\local\helpers\format::percent |
( |
?float | $value | ) |
|
|
static |
Returns float value as a percentage.
- Parameters
-
- Return values
-
◆ userdate()
static core_reportbuilder\local\helpers\format::userdate |
( |
?int | $value, |
|
|
stdClass | $row, |
|
|
?string | $format = null ) |
|
static |
Returns formatted date.
- Parameters
-
int | null | $value | Unix timestamp |
stdClass | $row | |
string | null | $format | Format string for strftime |
- Return values
-
The documentation for this class was generated from the following file:
- reportbuilder/classes/local/helpers/format.php