[ 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_bedisplaylog.php (sommaire)

Contains class for display of backend log $Id: class.t3lib_bedisplaylog.php 1421 2006-04-10 09:27:15Z mundaun $ Revised for TYPO3 3.6 July/2003 by Kasper Skaarhoj XHTML compliant

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

Définit 1 class

t3lib_BEDisplayLog:: (10 méthodes):
  initArray()
  getTimeLabel()
  getUserLabel()
  getTypeLabel()
  getActionLabel()
  getDetails()
  reset()
  getErrorFormatting()
  formatDetailsForList()
  stripPath()


Classe: t3lib_BEDisplayLog  - X-Ref

This class holds some functions used to display the sys_log table-content.
Used in the status-scripts and the log-module.

initArray()   X-Ref
Initialize the log table array with header labels.

return: array

getTimeLabel($code)   X-Ref
Get time label for log listing

param: integer        Timestamp to display
return: string        If the timestamp was also shown last time, then "." is returned. Otherwise the new timestamp formatted with ->doc->formatTime()

getUserLabel($code,$workspace=0)   X-Ref
Get user name label for log listing

param: integer        be_user uid
param: integer        Workspace ID
return: string        If username is different from last username then the username, otherwise "."

getTypeLabel($code)   X-Ref
Get type label for log listing

param: string        Key for the type label in locallang
return: string        If labe is different from last type label then the label is returned, otherwise "."

getActionLabel($code)   X-Ref
Get action label for log listing

param: string        Key for the action label in locallang
return: string        If labe is different from last action label then the label is returned, otherwise "."

getDetails($code,$text,$data,$sys_log_uid=0)   X-Ref
Get details for the log entry

param: string        Suffix to "msg_" to get label from locallang.
param: string        Details text
param: array        Data array
param: integer        sys_log uid number
return: string        Text string

reset()   X-Ref
Reset all internal "last..." variables to blank string.

return: void

getErrorFormatting($sign, $error=0)   X-Ref
Formats input string in red-colored font tags

param: string        Input value
param: integer        Error value
return: string        Input wrapped in red font-tag and bold

formatDetailsForList($row)   X-Ref
Formatting details text for the sys_log row inputted

param: array        sys_log row
return: string        Details string

stripPath($inArr)   X-Ref
For all entries in the $inArray (expected to be filepaths) the basename is extracted and set as value (if $this->stripPath is set)
This is done for log-entries from the FILE modules

param: array        Array of file paths
return: array



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