‪TYPO3CMS  ‪main
TYPO3\CMS\Belog\Domain\Model\LogEntry Class Reference
Inheritance diagram for TYPO3\CMS\Belog\Domain\Model\LogEntry:
TYPO3\CMS\Core\Log\LogDataTrait

Public Member Functions

 getUid ()
 
 getBackendUserUid ()
 
 getAction ()
 
 getRecordUid ()
 
 getTableName ()
 
 getRecordPid ()
 
 setError (int $error)
 
 getError ()
 
 getErrorIconClass ()
 
 getDetails ()
 
 getTstamp ()
 
 getType ()
 
 getChannel ()
 
 getLevel ()
 
 getDetailsNumber ()
 
 getIp ()
 
 setLogData (string $logData)
 
 getLogData ()
 
 getEventPid ()
 
 getWorkspaceUid ()
 
string int getNewId ()
 

Static Public Member Functions

static createFromDatabaseRecord (array $row)
 

Protected Attributes

int $uid = 0
 
int $backendUserUid = 0
 
int $action = 0
 
int $recordUid = 0
 
string $tableName = ''
 
int $recordPid = 0
 
int $error = 0
 
string $details = ''
 
int $tstamp = 0
 
int $type = 0
 
string $channel = ''
 
string $level = ''
 
int $detailsNumber = 0
 
string $ip = ''
 
string $logData = ''
 
int $eventPid = 0
 
int $workspaceUid = 0
 
string int $newId = 0
 

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Log\LogDataTrait
 unserializeLogData (mixed $logData)
 
 formatLogDetails (string $detailString, mixed $substitutes)
 
- ‪Static Protected Member Functions inherited from ‪TYPO3\CMS\Core\Log\LogDataTrait
static formatLogDetailsStatic (string $detailString, array $substitutes)
 

Detailed Description

A sys log entry This model is 'complete': All current database properties are in there.

This class is a TYPO3 Backend implementation and is not considered part of the Public TYPO3 API.

Definition at line 28 of file LogEntry.php.

Member Function Documentation

◆ createFromDatabaseRecord()

static TYPO3\CMS\Belog\Domain\Model\LogEntry::createFromDatabaseRecord ( array  $row)
static

◆ getAction()

TYPO3\CMS\Belog\Domain\Model\LogEntry::getAction ( )

Definition at line 135 of file LogEntry.php.

References TYPO3\CMS\Belog\Domain\Model\LogEntry\$action.

◆ getBackendUserUid()

TYPO3\CMS\Belog\Domain\Model\LogEntry::getBackendUserUid ( )

◆ getChannel()

TYPO3\CMS\Belog\Domain\Model\LogEntry::getChannel ( )

Definition at line 192 of file LogEntry.php.

References TYPO3\CMS\Belog\Domain\Model\LogEntry\$channel.

◆ getDetails()

TYPO3\CMS\Belog\Domain\Model\LogEntry::getDetails ( )

◆ getDetailsNumber()

TYPO3\CMS\Belog\Domain\Model\LogEntry::getDetailsNumber ( )

◆ getError()

TYPO3\CMS\Belog\Domain\Model\LogEntry::getError ( )

◆ getErrorIconClass()

TYPO3\CMS\Belog\Domain\Model\LogEntry::getErrorIconClass ( )

Definition at line 165 of file LogEntry.php.

References TYPO3\CMS\Belog\Domain\Model\LogEntry\getError().

◆ getEventPid()

TYPO3\CMS\Belog\Domain\Model\LogEntry::getEventPid ( )

Definition at line 226 of file LogEntry.php.

References TYPO3\CMS\Belog\Domain\Model\LogEntry\$eventPid.

◆ getIp()

TYPO3\CMS\Belog\Domain\Model\LogEntry::getIp ( )

Definition at line 207 of file LogEntry.php.

References TYPO3\CMS\Belog\Domain\Model\LogEntry\$ip.

◆ getLevel()

TYPO3\CMS\Belog\Domain\Model\LogEntry::getLevel ( )

Definition at line 197 of file LogEntry.php.

References TYPO3\CMS\Belog\Domain\Model\LogEntry\$level.

◆ getLogData()

◆ getNewId()

string int TYPO3\CMS\Belog\Domain\Model\LogEntry::getNewId ( )

Get new id

Returns
‪string|int

Definition at line 241 of file LogEntry.php.

References TYPO3\CMS\Belog\Domain\Model\LogEntry\$newId.

◆ getRecordPid()

TYPO3\CMS\Belog\Domain\Model\LogEntry::getRecordPid ( )

Definition at line 150 of file LogEntry.php.

References TYPO3\CMS\Belog\Domain\Model\LogEntry\$recordPid.

◆ getRecordUid()

TYPO3\CMS\Belog\Domain\Model\LogEntry::getRecordUid ( )

Definition at line 140 of file LogEntry.php.

References TYPO3\CMS\Belog\Domain\Model\LogEntry\$recordUid.

◆ getTableName()

TYPO3\CMS\Belog\Domain\Model\LogEntry::getTableName ( )

Definition at line 145 of file LogEntry.php.

References TYPO3\CMS\Belog\Domain\Model\LogEntry\$tableName.

◆ getTstamp()

TYPO3\CMS\Belog\Domain\Model\LogEntry::getTstamp ( )

Definition at line 182 of file LogEntry.php.

References TYPO3\CMS\Belog\Domain\Model\LogEntry\$tstamp.

◆ getType()

TYPO3\CMS\Belog\Domain\Model\LogEntry::getType ( )

Definition at line 187 of file LogEntry.php.

References TYPO3\CMS\Belog\Domain\Model\LogEntry\$type.

◆ getUid()

TYPO3\CMS\Belog\Domain\Model\LogEntry::getUid ( )

Definition at line 125 of file LogEntry.php.

References TYPO3\CMS\Belog\Domain\Model\LogEntry\$uid.

◆ getWorkspaceUid()

TYPO3\CMS\Belog\Domain\Model\LogEntry::getWorkspaceUid ( )

Definition at line 231 of file LogEntry.php.

References TYPO3\CMS\Belog\Domain\Model\LogEntry\$workspaceUid.

◆ setError()

TYPO3\CMS\Belog\Domain\Model\LogEntry::setError ( int  $error)

Definition at line 155 of file LogEntry.php.

References TYPO3\CMS\Belog\Domain\Model\LogEntry\$error.

◆ setLogData()

TYPO3\CMS\Belog\Domain\Model\LogEntry::setLogData ( string  $logData)

Definition at line 212 of file LogEntry.php.

References TYPO3\CMS\Belog\Domain\Model\LogEntry\$logData.

Member Data Documentation

◆ $action

int TYPO3\CMS\Belog\Domain\Model\LogEntry::$action = 0
protected

Action ID of the action that happened, for example 3 was a file action

Definition at line 48 of file LogEntry.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\LogEntry\getAction().

◆ $backendUserUid

int TYPO3\CMS\Belog\Domain\Model\LogEntry::$backendUserUid = 0
protected

This is not a relation to BeUser model, since the user does not always exist, but we want the uid in then anyway. This case is ugly in extbase, the best way we have found now is to resolve the username (if it exists) in a view helper and just use the uid of the be user here.

Definition at line 43 of file LogEntry.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\LogEntry\getBackendUserUid().

◆ $channel

string TYPO3\CMS\Belog\Domain\Model\LogEntry::$channel = ''
protected

Channel name.

Definition at line 88 of file LogEntry.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\LogEntry\getChannel().

◆ $details

string TYPO3\CMS\Belog\Domain\Model\LogEntry::$details = ''
protected

This is the log message itself, but possibly with s substitutions.

Definition at line 73 of file LogEntry.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\LogEntry\getDetails().

◆ $detailsNumber

int TYPO3\CMS\Belog\Domain\Model\LogEntry::$detailsNumber = 0
protected

Details number

Definition at line 98 of file LogEntry.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\LogEntry\getDetailsNumber().

◆ $error

int TYPO3\CMS\Belog\Domain\Model\LogEntry::$error = 0
protected

◆ $eventPid

int TYPO3\CMS\Belog\Domain\Model\LogEntry::$eventPid = 0
protected

Event PID

Definition at line 113 of file LogEntry.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\LogEntry\getEventPid().

◆ $ip

string TYPO3\CMS\Belog\Domain\Model\LogEntry::$ip = ''
protected

IP address of client

Definition at line 103 of file LogEntry.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\LogEntry\getIp().

◆ $level

string TYPO3\CMS\Belog\Domain\Model\LogEntry::$level = ''
protected

Level.

Definition at line 93 of file LogEntry.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\LogEntry\getLevel().

◆ $logData

string TYPO3\CMS\Belog\Domain\Model\LogEntry::$logData = ''
protected

Serialized log data. This is a serialized array with substitutions for $this->details.

Definition at line 108 of file LogEntry.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\LogEntry\getLogData(), and TYPO3\CMS\Belog\Domain\Model\LogEntry\setLogData().

◆ $newId

string int TYPO3\CMS\Belog\Domain\Model\LogEntry::$newId = 0
protected

New ID

Definition at line 123 of file LogEntry.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\LogEntry\getNewId().

◆ $recordPid

int TYPO3\CMS\Belog\Domain\Model\LogEntry::$recordPid = 0
protected

PID of the record the event happened to

Definition at line 63 of file LogEntry.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\LogEntry\getRecordPid().

◆ $recordUid

int TYPO3\CMS\Belog\Domain\Model\LogEntry::$recordUid = 0
protected

UID of the record the event happened to

Definition at line 53 of file LogEntry.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\LogEntry\getRecordUid().

◆ $tableName

string TYPO3\CMS\Belog\Domain\Model\LogEntry::$tableName = ''
protected

Table name

Definition at line 58 of file LogEntry.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\LogEntry\getTableName().

◆ $tstamp

int TYPO3\CMS\Belog\Domain\Model\LogEntry::$tstamp = 0
protected

Timestamp when the log entry was written

Definition at line 78 of file LogEntry.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\LogEntry\getTstamp().

◆ $type

int TYPO3\CMS\Belog\Domain\Model\LogEntry::$type = 0
protected

Type code

Definition at line 83 of file LogEntry.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\LogEntry\getType().

◆ $uid

int TYPO3\CMS\Belog\Domain\Model\LogEntry::$uid = 0
protected

Definition at line 34 of file LogEntry.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\LogEntry\getUid().

◆ $workspaceUid

int TYPO3\CMS\Belog\Domain\Model\LogEntry::$workspaceUid = 0
protected

This is only the UID and not the full workspace object for the same reason as in $beUserUid.

Definition at line 118 of file LogEntry.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\LogEntry\getWorkspaceUid().