Documentation TYPO3 par Ameos |
Public Member Functions | |
start () | |
push ($tslabel, $value='') | |
pull ($content='') | |
setTSlogMessage ($content, $num=0) | |
setTSselectQuery ($query, $msg) | |
incStackPointer () | |
decStackPointer () | |
mtime () | |
convertMicrotime ($microtime) | |
printTSlog () | |
fixContent (&$arr, $content, $depthData='', $first=0, $vKey='') | |
fixCLen ($c, $v) | |
fw ($str) | |
createHierarchyArray (&$arr, $pointer, $uniqueId) | |
debug_typo3PrintError ($header, $text, $js, $baseUrl='') | |
Public Attributes | |
$starttime = 0 | |
$LR = 1 | |
$printConf | |
$wrapError | |
$wrapIcon | |
$uniqueCounter = 0 | |
$tsStack = array(array()) | |
$tsStackLevel = 0 | |
$tsStackLevelMax = array() | |
$tsStackLog = array() | |
$tsStackPointer = 0 | |
$currentHashPointer = array() |
Definition at line 88 of file class.t3lib_timetrack.php.
t3lib_timeTrack::start | ( | ) |
Constructor Sets the starting time
Definition at line 144 of file class.t3lib_timetrack.php.
References mtime().
t3lib_timeTrack::push | ( | $ | tslabel, | |
$ | value = '' | |||
) |
Pushes an element to the TypoScript tracking array
string | Label string for the entry, eg. TypoScript property name | |
string | Additional value(?) |
Definition at line 164 of file class.t3lib_timetrack.php.
t3lib_timeTrack::pull | ( | $ | content = '' |
) |
Pulls an element from the TypoScript tracking array
string | The content string generated within the push/pull part. |
Definition at line 189 of file class.t3lib_timetrack.php.
t3lib_timeTrack::setTSlogMessage | ( | $ | content, | |
$ | num = 0 | |||
) |
Logs the TypoScript entry
string | The message string | |
integer | Message type: 0: information, 1: message, 2: warning, 3: error |
Definition at line 207 of file class.t3lib_timetrack.php.
t3lib_timeTrack::setTSselectQuery | ( | $ | query, | |
$ | msg | |||
) |
Set TSselectQuery - for messages in TypoScript debugger.
string | Query string | |
string | Message/Label to attach |
Definition at line 221 of file class.t3lib_timetrack.php.
t3lib_timeTrack::incStackPointer | ( | ) |
t3lib_timeTrack::decStackPointer | ( | ) |
t3lib_timeTrack::mtime | ( | ) |
Returns the current time in milliseconds
Definition at line 255 of file class.t3lib_timetrack.php.
References convertMicrotime().
Referenced by start().
t3lib_timeTrack::convertMicrotime | ( | $ | microtime | ) |
Returns microtime input to milliseconds
string | PHP microtime string |
Definition at line 265 of file class.t3lib_timetrack.php.
Referenced by mtime(), and printTSlog().
t3lib_timeTrack::printTSlog | ( | ) |
Print TypoScript parsing log
Definition at line 298 of file class.t3lib_timetrack.php.
References convertMicrotime(), createHierarchyArray(), fixContent(), t3lib_div::fixed_lgd_pre(), fw(), t3lib_div::trimExplode(), and t3lib_div::view_array().
t3lib_timeTrack::fixContent | ( | &$ | arr, | |
$ | content, | |||
$ | depthData = '' , |
|||
$ | first = 0 , |
|||
$ | vKey = '' | |||
) |
Recursively generates the content to display
array | Array which is modified with content. Reference | |
string | Current content string for the level | |
string | Prefixed icons for new PM icons | |
boolean | Set this for the first call from outside. | |
string | Seems to be the previous tsStackLog key |
Definition at line 447 of file class.t3lib_timetrack.php.
References fixCLen(), and t3lib_div::testInt().
Referenced by printTSlog().
t3lib_timeTrack::fixCLen | ( | $ | c, | |
$ | v | |||
) |
Wraps the input content string in green colored font-tags IF the length o fthe input string exceeds $this->printConf['contentLength'] (or $this->printConf['contentLength_FILE'] if $v == "FILE"
string | The content string | |
string | Command: If "FILE" then $this->printConf['contentLength_FILE'] is used for content length comparison, otherwise $this->printConf['contentLength'] |
Definition at line 511 of file class.t3lib_timetrack.php.
References t3lib_div::fixed_lgd().
Referenced by fixContent().
t3lib_timeTrack::fw | ( | $ | str | ) |
Wraps input string in a <font> tag with verdana, black and size 1
string | The string to be wrapped |
Definition at line 527 of file class.t3lib_timetrack.php.
Referenced by printTSlog().
t3lib_timeTrack::createHierarchyArray | ( | &$ | arr, | |
$ | pointer, | |||
$ | uniqueId | |||
) |
Helper function for internal data manipulation
array | Array (passed by reference) and modified | |
integer | Pointer value | |
string | Unique ID string |
Definition at line 541 of file class.t3lib_timetrack.php.
Referenced by printTSlog().
t3lib_timeTrack::debug_typo3PrintError | ( | $ | header, | |
$ | text, | |||
$ | js, | |||
$ | baseUrl = '' | |||
) |
This prints out a TYPO3 error message.
string | Header string | |
string | Message string | |
boolean | If set, then this will produce a alert() line for inclusion in JavaScript. | |
string | URL for the <base> tag (if you want it) |
Definition at line 561 of file class.t3lib_timetrack.php.
Referenced by tslib_fe::printError().
t3lib_timeTrack::$printConf |
Initial value:
array( 'showParentKeys' => 1, 'contentLength' => 10000, // Determines max lenght of displayed content before it gets cropped. 'contentLength_FILE' => 400, // Determines max lenght of displayed content FROM FILE cObjects before it gets cropped. Reason is that most FILE cObjects are huge and often used as template-code. 'flag_tree' => 1, 'flag_messages' => 1, 'flag_queries' => 0, 'flag_content' => 0, 'allTime' => 0, 'keyLgd' => 40, 'factor' => 10, 'col' => '#D9D5C9' )
Definition at line 92 of file class.t3lib_timetrack.php.
t3lib_timeTrack::$wrapError |
Initial value:
array( 0 => array('',''), 1 => array('<b>','</b>'), 2 => array('<b><font color="#ff6600">','</font></b>'), 3 => array('<b><font color="#ff0000">','</font></b>') )
Definition at line 106 of file class.t3lib_timetrack.php.
t3lib_timeTrack::$wrapIcon |
Initial value:
array( 0 => '', 1 => '<img src="typo3/gfx/icon_note.gif" width="18" height="16" align="absmiddle" alt="" />', 2 => '<img src="typo3/gfx/icon_warning.gif" width="18" height="16" align="absmiddle" alt="" />', 3 => '<img src="typo3/gfx/icon_fatalerror.gif" width="18" height="16" align="absmiddle" alt="" />' )
Definition at line 112 of file class.t3lib_timetrack.php.