Property | Type | Description | |
---|---|---|---|
$config | |||
$debug | |||
$env | |||
$fmt | |||
$startTime | |||
$time | |||
$timeout |
Method | Description | |
---|---|---|
__construct ( string | RFormatter $format = 'html' ) | Constructor | |
__get ( string $name ) | Enforce proper use of this class | |
__set ( string $name, mixed $value ) | Enforce proper use of this class | |
config ( string $key, mixed | null $value = null ) : mixed | Set or get configuration options | |
getBacktrace ( ) : array | false | Get relevant backtrace info for last ref call | |
getDebugInfo ( ) | ||
getInputExpressions ( array &$options = null ) : array | Determines the input expression(s) passed to the shortcut function | |
getTime ( $precision = 4 ) : double | Total CPU time used by the class | |
getTimeoutPoint ( ) | ||
parseComment ( string $comment, string | null $key = null ) : array | string | null | Parses a DocBlock comment into a data structure. | |
query ( mixed $subject, string $expression = null ) | Generate structured information about a variable/value/expression (subject) | |
splitRegex ( string $pattern ) : array | Split a regex into its components | |
timeFunc ( integer $iterations, callable $function, &$output = null ) : double | Executes a function the given number of times and returns the elapsed time. | |
timer ( integer $id = 1, integer $precision = 4 ) : void | double | Timer utility |
Method | Description | |
---|---|---|
evaluate ( &$subject, boolean $specialStr = false ) : mixed | Evaluates the given variable | |
evaluateExp ( string $expression = null ) : string | Scans for known classes and functions inside the provided expression, and linkifies them when possible | |
fromReflector ( Reflector $reflector, string $single = '', Reflector $context = null ) : string | Generate class / function info | |
getParentClasses ( Reflector $class ) : array | Get all parent classes of a class | |
hasInstanceTimedOut ( ) | ||
linkify ( Reflector $reflector, string | null $constant = null ) : string | null | Generates an URL that points to the documentation page relevant for the requested context | |
strLen ( string $string ) : integer | Calculates real string length | |
strPad ( $input, integer $padLen, string $padStr = ' ', integer $padType = STR_PAD_RIGHT ) : string | Safe str_pad alternative |
public __construct ( string | RFormatter $format = 'html' ) | ||
$format | string | RFormatter | Output format ID, or formatter instance defaults to 'html' |
protected evaluateExp ( string $expression = null ) : string | ||
$expression | string | Expression to format |
return | string | Formatted output |
protected fromReflector ( Reflector $reflector, string $single = '', Reflector $context = null ) : string | ||
$reflector | Reflector | Class name or reflection object |
$single | string | Skip parent classes |
$context | Reflector | Object context (for methods) |
return | string |
public static getBacktrace ( ) : array | false | ||
return | array | false |
public static getInputExpressions ( array &$options = null ) : array | ||
$options | array | |
return | array | Array of string expressions |
protected static getParentClasses ( Reflector $class ) : array | ||
$class | Reflector | Reflection object |
return | array | Array of ReflectionClass objects (starts with the ancestor, ends with the given class) |
public static getTime ( $precision = 4 ) : double | ||
return | double |
public static parseComment ( string $comment, string | null $key = null ) : array | string | null | ||
$comment | string | DocBlock comment (must start with /**) |
$key | string | null | Field to return (optional) |
return | array | string | null | Array containing all fields, array/string with the contents of the requested field, or null if the comment is empty/invalid |
public static splitRegex ( string $pattern ) : array | ||
$pattern | string | |
return | array |