Differences Between: [Versions 310 and 400] [Versions 39 and 400]
This file contains the core_privacy\local\request helper.
Copyright: | 2018 Andrew Nicols <andrew@nicols.co.uk> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 97 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
transform:: (5 methods):
user()
datetime()
date()
yesno()
percentage()
user(int $userid) X-Ref |
Translate a userid into the standard user format for exports. We have not determined if we will do this or not, but we provide the functionality and encourgae people to use it so that it can be retrospectively fitted if required. return: mixed param: int $userid the userid to translate |
datetime($datetime) X-Ref |
Translate a unix timestamp into a datetime string. return: string The translated string. param: int $datetime the unixtimestamp to translate. |
date($date) X-Ref |
Translate a unix timestamp into a date string. return: string The translated string. param: int $date the unixtimestamp to translate. |
yesno($value) X-Ref |
Translate a bool or int (0/1) value into a translated yes/no string. return: string param: bool $value The value to translate |
percentage(float $value) X-Ref |
Translate a float value which should be between 0.0 and 1.0 into percentage. return: float|string param: float $value The value between 0.0 and 1.0. |