[ Index ]
 

Code source de Typo3 4.1.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/t3lib/ -> class.t3lib_timetrack.php (sommaire)

Contains class with time tracking functions $Id: class.t3lib_timetrack.php 1611 2006-07-07 19:27:05Z mundaun $ Revised for TYPO3 3.6 July/2003 by Kasper Skaarhoj XHTML compliant

Author: Kasper Skaarhoj <kasperYYYY@typo3.com>
Poids: 594 lignes (20 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

t3lib_timeTrack:: (15 méthodes):
  start()
  push()
  pull()
  setTSlogMessage()
  setTSselectQuery()
  incStackPointer()
  decStackPointer()
  mtime()
  convertMicrotime()
  printTSlog()
  fixContent()
  fixCLen()
  fw()
  createHierarchyArray()
  debug_typo3PrintError()


Classe: t3lib_timeTrack  - X-Ref

Frontend Timetracking functions

Is used to register how much time is used with operations in TypoScript
Used by index_ts

start()   X-Ref
Constructor
Sets the starting time

return: void

push($tslabel, $value='')   X-Ref
Pushes an element to the TypoScript tracking array

param: string        Label string for the entry, eg. TypoScript property name
param: string        Additional value(?)
return: void

pull($content='')   X-Ref
Pulls an element from the TypoScript tracking array

param: string        The content string generated within the push/pull part.
return: void

setTSlogMessage($content,$num=0)   X-Ref
Logs the TypoScript entry

param: string        The message string
param: integer        Message type: 0: information, 1: message, 2: warning, 3: error
return: void

setTSselectQuery($query,$msg)   X-Ref
Set TSselectQuery - for messages in TypoScript debugger.

param: string        Query string
param: string        Message/Label to attach
return: void

incStackPointer()   X-Ref
Increases the stack pointer

return: void

decStackPointer()   X-Ref
Decreases the stack pointer

return: void

mtime()   X-Ref
Returns the current time in milliseconds

return: integer

convertMicrotime($microtime)   X-Ref
Returns microtime input to milliseconds

param: string        PHP microtime string
return: integer

printTSlog()   X-Ref
Print TypoScript parsing log

return: string        HTML table with the information about parsing times.

fixContent(&$arr, $content, $depthData='', $first=0, $vKey='')   X-Ref
Recursively generates the content to display

param: array        Array which is modified with content. Reference
param: string        Current content string for the level
param: string        Prefixed icons for new PM icons
param: boolean        Set this for the first call from outside.
param: string        Seems to be the previous tsStackLog key
return: string        Returns the $content string generated/modified. Also the $arr array is modified!

fixCLen($c,$v)   X-Ref
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: string        The content string
param: string        Command: If "FILE" then $this->printConf['contentLength_FILE'] is used for content length comparison, otherwise $this->printConf['contentLength']
return: string

fw($str)   X-Ref
Wraps input string in a <font> tag with verdana, black and size 1

param: string        The string to be wrapped
return: string

createHierarchyArray(&$arr,$pointer,$uniqueId)   X-Ref
Helper function for internal data manipulation

param: array        Array (passed by reference) and modified
param: integer        Pointer value
param: string        Unique ID string
return: void

debug_typo3PrintError($header,$text,$js,$baseUrl='')   X-Ref
This prints out a TYPO3 error message.

param: string        Header string
param: string        Message string
param: boolean        If set, then this will produce a alert() line for inclusion in JavaScript.
param: string        URL for the <base> tag (if you want it)
return: string



Généré le : Sun Nov 25 17:13:16 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics