Documentation TYPO3 par Ameos

t3lib_BEDisplayLog Class Reference

Inheritance diagram for t3lib_BEDisplayLog:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 initArray ()
 getTimeLabel ($code)
 getUserLabel ($code, $workspace=0)
 getTypeLabel ($code)
 getActionLabel ($code)
 getDetails ($code, $text, $data, $sys_log_uid=0)
 reset ()
 getErrorFormatting ($sign, $error=0)
 formatDetailsForList ($row)
 stripPath ($inArr)

Public Attributes

 $lastTimeLabel = ''
 $lastUserLabel = ''
 $lastTypeLabel = ''
 $lastActionLabel = ''
 $detailsOn = 1
 $stripPath = 1
 $errorSign
 $wsArray
 $be_user_Array = array()

Detailed Description

Definition at line 81 of file class.t3lib_bedisplaylog.php.


Member Function Documentation

t3lib_BEDisplayLog::formatDetailsForList row  ) 
 

Formatting details text for the sys_log row inputted

Parameters:
array sys_log row
Returns:
string Details string

Definition at line 244 of file class.t3lib_bedisplaylog.php.

References getDetails(), and stripPath().

t3lib_BEDisplayLog::getActionLabel code  ) 
 

Get action label for log listing

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

Definition at line 168 of file class.t3lib_bedisplaylog.php.

t3lib_BEDisplayLog::getDetails code,
text,
data,
sys_log_uid = 0
 

Get details for the log entry

Parameters:
string Suffix to "msg_" to get label from locallang.
string Details text
array Data array
integer sys_log uid number
Returns:
string Text string
See also:
formatDetailsForList()

Definition at line 186 of file class.t3lib_bedisplaylog.php.

Referenced by formatDetailsForList().

t3lib_BEDisplayLog::getErrorFormatting sign,
error = 0
 

Formats input string in red-colored font tags

Parameters:
string Input value
integer Error value
Returns:
string Input wrapped in red font-tag and bold

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

t3lib_BEDisplayLog::getTimeLabel code  ) 
 

Get time label for log listing

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

Definition at line 123 of file class.t3lib_bedisplaylog.php.

t3lib_BEDisplayLog::getTypeLabel code  ) 
 

Get type label for log listing

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

Definition at line 154 of file class.t3lib_bedisplaylog.php.

t3lib_BEDisplayLog::getUserLabel code,
workspace = 0
 

Get user name label for log listing

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

Definition at line 139 of file class.t3lib_bedisplaylog.php.

t3lib_BEDisplayLog::initArray  ) 
 

Initialize the log table array with header labels.

Returns:
array

Reimplemented in logFunctions_ext.

Definition at line 106 of file class.t3lib_bedisplaylog.php.

t3lib_BEDisplayLog::reset  ) 
 

Reset all internal "last..." variables to blank string.

Returns:
void

Definition at line 220 of file class.t3lib_bedisplaylog.php.

t3lib_BEDisplayLog::stripPath inArr  ) 
 

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

Parameters:
array Array of file paths
Returns:
array
See also:
formatDetailsForList()

Definition at line 261 of file class.t3lib_bedisplaylog.php.

Referenced by formatDetailsForList().


Member Data Documentation

t3lib_BEDisplayLog::$errorSign
 

Initial value:

 Array(
                1 => '!',
                2 => 'Sys!',
                3 => 'Secur!'
        )

Definition at line 89 of file class.t3lib_bedisplaylog.php.

t3lib_BEDisplayLog::$wsArray
 

Initial value:

 array(
                0 => 'LIVE',
                -1 => 'Draft',
        )

Definition at line 94 of file class.t3lib_bedisplaylog.php.


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


Généré par TYPO3 Ameos avec  doxygen 1.4.6