|
Erebot
latest
A modular IRC bot for PHP 5.3+
|
A class used to format durations. More...
Inheritance diagram for Erebot\Styling\Variables\DurationVariable:Public Member Functions | |
| __construct ($value) | |
| getValue () | |
| render (\Erebot\IntlInterface $translator) | |
Protected Attributes | |
| $value | |
| The duration to format (in seconds). | |
A class used to format durations.
Definition at line 27 of file DurationVariable.php.
| Erebot\Styling\Variables\DurationVariable::__construct | ( | $value | ) |
Constructor.
| int | $value | A duration to format, given in seconds. |
Definition at line 38 of file DurationVariable.php.
References Erebot\Styling\Variables\DurationVariable\$value.
| Erebot\Styling\Variables\DurationVariable::getValue | ( | ) |
Returns the value stored in this object.
| mixed | Value stored in this object. |
Implements Erebot\Styling\VariableInterface.
Definition at line 93 of file DurationVariable.php.
References Erebot\Styling\Variables\DurationVariable\$value.
| Erebot\Styling\Variables\DurationVariable::render | ( | \Erebot\IntlInterface | $translator | ) |
Renders the content of this variable.
| Erebot::IntlInterface | $translator | A translator that can be used to change the rendering depending on the target locale. |
| string | The variable rendered as a string. |
Implements Erebot\Styling\VariableInterface.
Definition at line 43 of file DurationVariable.php.
References Erebot\IntlInterface\LC_MESSAGES.