‪TYPO3CMS  9.5
TYPO3\CMS\Belog\Domain\Model\LogEntry Class Reference
Inheritance diagram for TYPO3\CMS\Belog\Domain\Model\LogEntry:
TYPO3\CMS\Extbase\DomainObject\AbstractEntity TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface TYPO3\CMS\Extbase\Persistence\ObjectMonitoringInterface

Public Member Functions

 setPid ($pid)
 
int getPid ()
 
 setBackendUserUid ($beUserUid)
 
int getBackendUserUid ()
 
 setAction ($action)
 
int getAction ()
 
 setRecordUid ($recordUid)
 
int getRecordUid ()
 
 setTableName ($tableName)
 
string getTableName ()
 
 setRecordPid ($recordPid)
 
int getRecordPid ()
 
 setError ($error)
 
int getError ()
 
string getErrorIconClass ()
 
 setDetails ($details)
 
string getDetails ()
 
 setTstamp ($tstamp)
 
int getTstamp ()
 
 setType ($type)
 
int getType ()
 
 setDetailsNumber ($detailsNumber)
 
int getDetailsNumber ()
 
 setIp ($ip)
 
string getIp ()
 
 setLogData ($logData)
 
array getLogData ()
 
 setEventPid ($eventPid)
 
int getEventPid ()
 
 setWorkspaceUid ($workspaceUid)
 
int getWorkspaceUid ()
 
 setNewId ($newId)
 
string getNewId ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject
int getUid ()
 
bool _setProperty ($propertyName, $propertyValue)
 
mixed _getProperty ($propertyName)
 
array _getProperties ()
 
bool _hasProperty ($propertyName)
 
bool _isNew ()
 
 _memorizeCleanState ($propertyName=null)
 
 _memorizePropertyCleanState ($propertyName)
 
array _getCleanProperties ()
 
mixed _getCleanProperty ($propertyName)
 
bool _isDirty ($propertyName=null)
 
bool _isClone ()
 
 _setClone ($clone)
 
 __clone ()
 
string __toString ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Persistence\ObjectMonitoringInterface
 _memorizeCleanState ()
 
bool _isDirty ()
 

Protected Attributes

int $pid = 0
 
int $backendUserUid = 0
 
int $action = 0
 
int $recordUid = 0
 
string $tableName = 0
 
int $recordPid = 0
 
int $error = 0
 
string $details = ''
 
int $tstamp = 0
 
int $type = 0
 
int $detailsNumber = 0
 
string $ip = ''
 
string $logData = ''
 
int $eventPid = 0
 
int $workspaceUid = 0
 
string $newId = 0
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject
int $uid
 
int $_localizedUid
 
int $_languageUid
 
int $_versionedUid
 
int $pid
 

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject
bool isPropertyDirty ($previousValue, $currentValue)
 

Detailed Description

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

Todo:
‪: This should be stuffed to some more central place

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

Definition at line 24 of file LogEntry.php.

Member Function Documentation

◆ getAction()

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

Get action

Returns
‪int

Definition at line 181 of file LogEntry.php.

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

◆ getBackendUserUid()

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

Get backend user id

Returns
‪int

Definition at line 161 of file LogEntry.php.

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

◆ getDetails()

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

◆ getDetailsNumber()

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

◆ getError()

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

Get error

Returns
‪int

Definition at line 261 of file LogEntry.php.

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

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

◆ getErrorIconClass()

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

Get class name for the error code

Returns
‪string

Definition at line 271 of file LogEntry.php.

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

◆ getEventPid()

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

Get event pid

Returns
‪int

Definition at line 429 of file LogEntry.php.

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

◆ getIp()

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

Get ip

Returns
‪string

Definition at line 382 of file LogEntry.php.

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

◆ getLogData()

array TYPO3\CMS\Belog\Domain\Model\LogEntry::getLogData ( )

◆ getNewId()

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

Get new id

Returns
‪string

Definition at line 469 of file LogEntry.php.

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

◆ getPid()

int TYPO3\CMS\Belog\Domain\Model\LogEntry::getPid ( )

Get pid

Returns
‪int

Reimplemented from TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject.

Definition at line 141 of file LogEntry.php.

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

◆ getRecordPid()

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

Get record pid

Returns
‪int

Definition at line 241 of file LogEntry.php.

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

◆ getRecordUid()

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

Get record uid

Returns
‪int

Definition at line 201 of file LogEntry.php.

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

◆ getTableName()

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

Get table name

Returns
‪string

Definition at line 221 of file LogEntry.php.

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

◆ getTstamp()

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

Get tstamp

Returns
‪int

Definition at line 322 of file LogEntry.php.

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

◆ getType()

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

Get type

Returns
‪int

Definition at line 342 of file LogEntry.php.

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

◆ getWorkspaceUid()

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

Get workspace

Returns
‪int

Definition at line 449 of file LogEntry.php.

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

◆ setAction()

TYPO3\CMS\Belog\Domain\Model\LogEntry::setAction (   $action)

Set action

Parameters
int$action

Definition at line 171 of file LogEntry.php.

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

◆ setBackendUserUid()

TYPO3\CMS\Belog\Domain\Model\LogEntry::setBackendUserUid (   $beUserUid)

Set backend user uid

Parameters
int$beUserUid

Definition at line 151 of file LogEntry.php.

◆ setDetails()

TYPO3\CMS\Belog\Domain\Model\LogEntry::setDetails (   $details)

Set details

Parameters
string$details

Definition at line 289 of file LogEntry.php.

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

◆ setDetailsNumber()

TYPO3\CMS\Belog\Domain\Model\LogEntry::setDetailsNumber (   $detailsNumber)

Set details number

Parameters
int$detailsNumber

Definition at line 352 of file LogEntry.php.

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

◆ setError()

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

Set error

Parameters
int$error

Definition at line 251 of file LogEntry.php.

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

◆ setEventPid()

TYPO3\CMS\Belog\Domain\Model\LogEntry::setEventPid (   $eventPid)

Set event pid

Parameters
int$eventPid

Definition at line 419 of file LogEntry.php.

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

◆ setIp()

TYPO3\CMS\Belog\Domain\Model\LogEntry::setIp (   $ip)

Set ip

Parameters
string$ip

Definition at line 372 of file LogEntry.php.

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

◆ setLogData()

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

Set log data

Parameters
string$logData

Definition at line 392 of file LogEntry.php.

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

◆ setNewId()

TYPO3\CMS\Belog\Domain\Model\LogEntry::setNewId (   $newId)

Set new id

Parameters
string$newId

Definition at line 459 of file LogEntry.php.

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

◆ setPid()

TYPO3\CMS\Belog\Domain\Model\LogEntry::setPid (   $pid)

Set pid

Parameters
int$pid

Reimplemented from TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject.

Definition at line 131 of file LogEntry.php.

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

◆ setRecordPid()

TYPO3\CMS\Belog\Domain\Model\LogEntry::setRecordPid (   $recordPid)

Set record pid

Parameters
int$recordPid

Definition at line 231 of file LogEntry.php.

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

◆ setRecordUid()

TYPO3\CMS\Belog\Domain\Model\LogEntry::setRecordUid (   $recordUid)

Set record uid

Parameters
int$recordUid

Definition at line 191 of file LogEntry.php.

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

◆ setTableName()

TYPO3\CMS\Belog\Domain\Model\LogEntry::setTableName (   $tableName)

Set table name

Parameters
string$tableName

Definition at line 211 of file LogEntry.php.

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

◆ setTstamp()

TYPO3\CMS\Belog\Domain\Model\LogEntry::setTstamp (   $tstamp)

Set tstamp

Parameters
int$tstamp

Definition at line 312 of file LogEntry.php.

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

◆ setType()

TYPO3\CMS\Belog\Domain\Model\LogEntry::setType (   $type)

Set type

Parameters
int$type

Definition at line 332 of file LogEntry.php.

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

◆ setWorkspaceUid()

TYPO3\CMS\Belog\Domain\Model\LogEntry::setWorkspaceUid (   $workspaceUid)

Set workspace uid

Parameters
int$workspaceUid

Definition at line 439 of file LogEntry.php.

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

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 46 of file LogEntry.php.

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

◆ $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 40 of file LogEntry.php.

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

◆ $details

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

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

Definition at line 76 of file LogEntry.php.

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

◆ $detailsNumber

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

◆ $error

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

◆ $eventPid

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

◆ $ip

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

IP address of client

Definition at line 100 of file LogEntry.php.

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

◆ $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 106 of file LogEntry.php.

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

◆ $newId

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

◆ $pid

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

Storage page ID of the log entry

Definition at line 30 of file LogEntry.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\LogEntry\getPid(), and TYPO3\CMS\Belog\Domain\Model\LogEntry\setPid().

◆ $recordPid

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

PID of the record the event happened to

Definition at line 64 of file LogEntry.php.

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

◆ $recordUid

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

UID of the record the event happened to

Definition at line 52 of file LogEntry.php.

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

◆ $tableName

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

◆ $tstamp

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

Timestamp when the log entry was written

Definition at line 82 of file LogEntry.php.

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

◆ $type

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

◆ $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(), and TYPO3\CMS\Belog\Domain\Model\LogEntry\setWorkspaceUid().