Solutions Open Source

Référence de la classe t3lib_timeTrack

Liste de tous les membres

Fonctions membres publiques

 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='')

Attributs publics

 $starttime = 0
 $LR = 1
 $printConf
 $wrapError
 $wrapIcon
 $uniqueCounter = 0
 $tsStack = array(array())
 $tsStackLevel = 0
 $tsStackLevelMax = array()
 $tsStackLog = array()
 $tsStackPointer = 0
 $currentHashPointer = array()


Documentation des fonctions membres

t3lib_timeTrack::start (  ) 

Constructor Sets the starting time

Renvoie:
void

t3lib_timeTrack::push ( tslabel,
value = '' 
)

Pushes an element to the TypoScript tracking array

Paramètres:
string Label string for the entry, eg. TypoScript property name
string Additional value(?)
Renvoie:
void
Voir également:
tslib_cObj::cObjGetSingle(), pull()

t3lib_timeTrack::pull ( content = ''  ) 

Pulls an element from the TypoScript tracking array

Paramètres:
string The content string generated within the push/pull part.
Renvoie:
void
Voir également:
tslib_cObj::cObjGetSingle(), push()

t3lib_timeTrack::setTSlogMessage ( content,
num = 0 
)

Logs the TypoScript entry

Paramètres:
string The message string
integer Message type: 0: information, 1: message, 2: warning, 3: error
Renvoie:
void
Voir également:
tslib_cObj::CONTENT()

t3lib_timeTrack::setTSselectQuery ( query,
msg 
)

Set TSselectQuery - for messages in TypoScript debugger.

Paramètres:
string Query string
string Message/Label to attach
Renvoie:
void

t3lib_timeTrack::incStackPointer (  ) 

Increases the stack pointer

Renvoie:
void
Voir également:
decStackPointer(), TSpagegen::renderContent(), tslib_cObj::cObjGetSingle()

t3lib_timeTrack::decStackPointer (  ) 

Decreases the stack pointer

Renvoie:
void
Voir également:
incStackPointer(), TSpagegen::renderContent(), tslib_cObj::cObjGetSingle()

t3lib_timeTrack::mtime (  ) 

Returns the current time in milliseconds

Renvoie:
integer

t3lib_timeTrack::convertMicrotime ( microtime  ) 

Returns microtime input to milliseconds

Paramètres:
string PHP microtime string
Renvoie:
integer

t3lib_timeTrack::printTSlog (  ) 

Print TypoScript parsing log

Renvoie:
string HTML table with the information about parsing times.
Voir également:
t3lib_tsfeBeUserAuth::extGetCategory_tsdebug()

t3lib_timeTrack::fixContent ( &$  arr,
content,
depthData = '',
first = 0,
vKey = '' 
)

Recursively generates the content to display

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

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"

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

t3lib_timeTrack::fw ( str  ) 

Wraps input string in a <font> tag with verdana, black and size 1

Paramètres:
string The string to be wrapped
Renvoie:
string

t3lib_timeTrack::createHierarchyArray ( &$  arr,
pointer,
uniqueId 
)

Helper function for internal data manipulation

Paramètres:
array Array (passed by reference) and modified
integer Pointer value
string Unique ID string
Renvoie:
void private
Voir également:
printTSlog()

t3lib_timeTrack::debug_typo3PrintError ( header,
text,
js,
baseUrl = '' 
)

This prints out a TYPO3 error message.

Paramètres:
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)
Renvoie:
string


Documentation des données membres

t3lib_timeTrack::$starttime = 0

t3lib_timeTrack::$LR = 1

t3lib_timeTrack::$printConf

Valeur initiale :

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

t3lib_timeTrack::$wrapError

Valeur initiale :

array(
                0 => array('',''),
                1 => array('<b>','</b>'),
                2 => array('<b><font color="#ff6600">','</font></b>'),
                3 => array('<b><font color="#ff0000">','</font></b>')
        )

t3lib_timeTrack::$wrapIcon

Valeur initiale :

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="" />'
        )

t3lib_timeTrack::$uniqueCounter = 0

t3lib_timeTrack::$tsStack = array(array())

t3lib_timeTrack::$tsStackLevel = 0

t3lib_timeTrack::$tsStackLevelMax = array()

t3lib_timeTrack::$tsStackLog = array()

t3lib_timeTrack::$tsStackPointer = 0

t3lib_timeTrack::$currentHashPointer = array()


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Fri Aug 31 11:42:55 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3