/sources/developer_tools.php

Description
Functions
destrictify (line 37)

Remove ocPortal's strictness, to help integration of third-party code.

void destrictify ([boolean $change_content_type = true])
  • boolean $change_content_type: Whether to also set the content type to plain-HTML
init__developer_tools (line 26)

Standard code module initialisation function.

void init__developer_tools ()
inspect (line 94)

Output whatever arguments are given for debugging. If possible it'll output with plain text, but if output has already started it will attach messages.

void inspect ()
inspect_plain (line 104)

Output whatever arguments are given for debugging as text and exit. If possible it'll output with plain text, but if output has already started it will attach messages.

void inspect_plain ()
memory_trace_point (line 172)

Record the memory usage at this point.

void memory_trace_point ([?string $name = NULL])
  • ?string $name: The name of the memory point (NULL: use a simple counter)
restrictify (line 66)

Add ocPortal's strictness, after finishing with third-party code. To be run optionally at some point after destrictify().

void restrictify ()
show_memory_points (line 182)

Output whatever memory points we collected up.

void show_memory_points ()
_inspect (line 117)

Output whatever arguments are given for debugging. If possible it'll output with plain text, but if output has already started it will attach messages.

void _inspect (array $args, [boolean $force_plain = false])
  • array $args: Arguments to output
  • boolean $force_plain: Whether to force text output

Documentation generated on Sun, 02 Jan 2011 23:12:59 +0000 by phpDocumentor 1.4.3