A convenience class to convert property values to specific types.
Located in /log4php/helpers/LoggerOptionConverter.php (line 29)
Read a predefined var.
It returns a value referenced by $key using this search criteria:
Performs value substitution for string options.
An option can contain PHP constants delimited by '${' and '}'.
E.g. for input string "some ${FOO} value", the method will attempt to substitute ${FOO} with the value of constant FOO if it exists.
Therefore, if FOO is a constant, and it has value "bar", the resulting string will be "some bar value".
If the constant is not defined, it will be replaced by an empty string, and the resulting string will be "some value".
Converts $value to boolean, or throws an exception if not possible.
Converts a value to a valid file size (integer).
Supports 'KB', 'MB' and 'GB' suffixes, where KB = 1024 B etc.
The final value will be rounded to the nearest integer.
Examples:
Converts $value to integer, or throws an exception if not possible.
Floats cannot be converted to integer.
Converts the value to a level. Throws an exception if not possible.
Converts $value to integer, or throws an exception if not possible.
Floats cannot be converted to integer.
Converts a value to string, or throws an exception if not possible.
Objects can be converted to string if they implement the magic __toString() method.
Documentation generated on Tue, 12 Mar 2024 14:04:54 +0900 by phpDocumentor 1.4.4