|
RSI helpers
0.1
RSI helpers
|
Public Member Functions | |
| __construct ($config=null) | |
| head () | |
| Head for dumps (style and script tags). More... | |
| source ($filename, $line_no=null, $line_to=null, $type=null, $header=null) | |
| Dump source code. More... | |
| var ($name, $value, $docs=null) | |
| Dump a variable. More... | |
| trace ($trace=null) | |
| Dump a (back-) trace. More... | |
Public Member Functions inherited from Thing | |
| propertyExists ($property) | |
| Check if a property exists (public or published). More... | |
| constants ($prefix=null) | |
| Return all constants. More... | |
| get ($key) | |
| Get one or more properties. More... | |
| set ($key, $value=null) | |
| Set one or more properties. More... | |
| __get ($key) | |
| __set ($key, $value) | |
Static Public Member Functions | |
| static | die ($value=null) |
| Dump and die. More... | |
Data Fields | |
| $styleFile = __DIR__ . '/dump.css' | |
| Stylsheet filename. More... | |
| $styleNamespace = 'dump' | |
| $scriptFile = __DIR__ . '/dump.js' | |
| Javascript filename. More... | |
| $scriptNamespace = 'dump' | |
| $extraBefore = 10 | |
| Extra lines to show before focus in source code dump. More... | |
| $extraAfter = 5 | |
| Extra lines to show after focus line in source code dump. More... | |
| $sourceFormat | |
| $memoryLimit = null | |
| Maximum memory usage (empty = 20% of script memory limit). More... | |
| $maxDepth = 16 | |
| Maximum recursion depth. More... | |
| $maxLength = 128 | |
| Maximum single line length (chop+expand if longer). More... | |
| $timeWindow = 315360000 | |
| Window (seconds) for integer to time conversion (default = 10 years). More... | |
| $timeFormat = 'Y-m-d H:i:s' | |
| $validFilename = '/^([A-Z]:[\\/\\\\]|\\/|\\\\\\\\)[^\\*\\?\\:\\|\<\>\\&\\r\\n]*\\.\\w+$/' | |
| Regex to determine if a string might be a filename (empty = do not check). More... | |
| $groupProperties = true | |
| Group properties by (parent) class. More... | |
| $sortProperties = true | |
| Sort properties by name (ignoring leading underscores). More... | |
| $remoteDocs = 'https://php.net/manual/en/' | |
| Remote location for PHP documentation. More... | |
| $localDocs = null | |
| Local location for PHP documentation (https://www.php.net/download-docs.php, "Many HTML files"). More... | |
| $paramConstsFile = __DIR__ . '/../../data/consts.php' | |
| File with const data for parameters. More... | |
Data Fields inherited from Thing | |
| const | HIDDEN = 0 |
| Property is hidden. More... | |
| const | READABLE = 1 |
| Property is readable. More... | |
| const | WRITEABLE = 2 |
| Property is writeable. More... | |
| const | READWRITE = 3 |
| Property is readable and writeable. More... | |
Protected Member Functions | |
| valueAsTime ($value) | |
| escapeDoc ($doc) | |
| propertyDoc ($filename, $property) | |
| reflectVisibility ($reflect) | |
| varConstTable ($constants) | |
| varTypeArray ($value, &$size, &$sub, $depth, $hashes) | |
| varTypeBoolean ($value, &$size, &$sub, $depth, $hashes) | |
| varTypeDouble ($value, &$size, &$sub, $depth, $hashes) | |
| varTypeInteger ($value, &$size, &$sub, $depth, $hashes) | |
| varTypeNull ($value, &$size, &$sub, $depth, $hashes) | |
| varTypeObject ($value, &$size, &$sub, $depth, $hashes) | |
| varTypeResource ($value, &$size, &$sub, $depth, $hashes) | |
| varTypeString ($value, &$size, &$sub, $depth, $hashes) | |
| varTypeUnknown ($value, &$size, &$sub, $depth, $hashes) | |
| varValue ($value, &$size=null, &$sub=null, $depth=0, $hashes=[]) | |
| varRow ($name, $visibility, $value, $depth=0, $hashes=[], $docs=null) | |
| traceTabs ($step, $reflect) | |
| traceShowTab ($tabs, $index, $key) | |
Protected Member Functions inherited from Thing | |
| publish ($property, $visibility=self::READABLE) | |
| Publish a property (or hide it again). More... | |
| configure ($config) | |
| Configure the object. More... | |
| _get ($key) | |
| Default getter if no specific setter is defined, and the property is also not published (readable). More... | |
| _set ($key, $value) | |
| Default setter if no specific setter is defined, and the property is also not published (writeable). More... | |
Protected Attributes | |
| $_index = 0 | |
| $_propertyDocs = [] | |
| $_paramConsts = null | |
Protected Attributes inherited from Thing | |
| $_published = [] | |
| Published properties (key = name of property, value = visibility). More... | |
|
static |
| head | ( | ) |
| source | ( | $filename, | |
$line_no = null, |
|||
$line_to = null, |
|||
$type = null, |
|||
$header = null |
|||
| ) |
Dump source code.
| string | array | $filename | Filename or array with lines. |
| int | $line_no | Line to focus (empty = complete file, no focus). |
| int | $line_to | Show source from $line_no to $line_to (no focus). |
| string | $type | Formatting type (empty = use filename extension). |
| string | $header | Header (defaults to filename; may contain HTML / no escaping). |
| trace | ( | $trace = null | ) |
| var | ( | $name, | |
| $value, | |||
$docs = null |
|||
| ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| $extraAfter = 5 |
| $extraBefore = 10 |
| $localDocs = null |
Local location for PHP documentation (https://www.php.net/download-docs.php, "Many HTML files").
| $maxLength = 128 |
| $memoryLimit = null |
| $paramConstsFile = __DIR__ . '/../../data/consts.php' |
| $remoteDocs = 'https://php.net/manual/en/' |
| $sortProperties = true |
| $sourceFormat |
| $timeWindow = 315360000 |
| $validFilename = '/^([A-Z]:[\\/\\\\]|\\/|\\\\\\\\)[^\\*\\?\\:\\|\<\>\\&\\r\\n]*\\.\\w+$/' |