Documentation TYPO3 par Ameos

t3lib_timeTrack Class Reference

List of all members.

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()

Detailed Description

Definition at line 88 of file class.t3lib_timetrack.php.


Member Function Documentation

t3lib_timeTrack::start (  ) 

Constructor Sets the starting time

Returns:
void

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

Parameters:
string Label string for the entry, eg. TypoScript property name
string Additional value(?)
Returns:
void
See also:
tslib_cObj::cObjGetSingle(), pull()

Definition at line 164 of file class.t3lib_timetrack.php.

t3lib_timeTrack::pull ( content = ''  ) 

Pulls an element from the TypoScript tracking array

Parameters:
string The content string generated within the push/pull part.
Returns:
void
See also:
tslib_cObj::cObjGetSingle(), push()

Definition at line 189 of file class.t3lib_timetrack.php.

t3lib_timeTrack::setTSlogMessage ( content,
num = 0 
)

Logs the TypoScript entry

Parameters:
string The message string
integer Message type: 0: information, 1: message, 2: warning, 3: error
Returns:
void
See also:
tslib_cObj::CONTENT()

Definition at line 207 of file class.t3lib_timetrack.php.

t3lib_timeTrack::setTSselectQuery ( query,
msg 
)

Set TSselectQuery - for messages in TypoScript debugger.

Parameters:
string Query string
string Message/Label to attach
Returns:
void

Definition at line 221 of file class.t3lib_timetrack.php.

t3lib_timeTrack::incStackPointer (  ) 

Increases the stack pointer

Returns:
void
See also:
decStackPointer(), TSpagegen::renderContent(), tslib_cObj::cObjGetSingle()

Definition at line 234 of file class.t3lib_timetrack.php.

t3lib_timeTrack::decStackPointer (  ) 

Decreases the stack pointer

Returns:
void
See also:
incStackPointer(), TSpagegen::renderContent(), tslib_cObj::cObjGetSingle()

Definition at line 245 of file class.t3lib_timetrack.php.

t3lib_timeTrack::mtime (  ) 

Returns the current time in milliseconds

Returns:
integer

Definition at line 255 of file class.t3lib_timetrack.php.

References convertMicrotime().

Referenced by start().

t3lib_timeTrack::convertMicrotime ( microtime  ) 

Returns microtime input to milliseconds

Parameters:
string PHP microtime string
Returns:
integer

Definition at line 265 of file class.t3lib_timetrack.php.

Referenced by mtime(), and printTSlog().

t3lib_timeTrack::printTSlog (  ) 

Print TypoScript parsing log

Returns:
string HTML table with the information about parsing times.
See also:
t3lib_tsfeBeUserAuth::extGetCategory_tsdebug()

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

Parameters:
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
Returns:
string Returns the $content string generated/modified. Also the $arr array is modified!

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"

Parameters:
string The content string
string Command: If "FILE" then $this->printConf['contentLength_FILE'] is used for content length comparison, otherwise $this->printConf['contentLength']
Returns:
string

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

Parameters:
string The string to be wrapped
Returns:
string

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

Parameters:
array Array (passed by reference) and modified
integer Pointer value
string Unique ID string
Returns:
void private
See also:
printTSlog()

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.

Parameters:
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)
Returns:
string

Definition at line 561 of file class.t3lib_timetrack.php.

Referenced by tslib_fe::printError().


Member Data Documentation

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.


The documentation for this class was generated from the following file:


Généré par L'expert TYPO3 avec  doxygen 1.4.6