‪TYPO3CMS  10.4
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

 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 null getUid ()
 
 setPid (int $pid)
 
int null getPid ()
 
bool _setProperty (string $propertyName, $propertyValue)
 
mixed _getProperty (string $propertyName)
 
array _getProperties ()
 
bool _hasProperty ($propertyName)
 
bool _isNew ()
 
 _memorizeCleanState ($propertyName=null)
 
 _memorizePropertyCleanState ($propertyName)
 
array _getCleanProperties ()
 
mixed _getCleanProperty (string $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 27 of file LogEntry.php.

Member Function Documentation

◆ getAction()

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

Get action

Returns
‪int

Definition at line 164 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 144 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 244 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 254 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 412 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 365 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 452 of file LogEntry.php.

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

◆ getRecordPid()

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

Get record pid

Returns
‪int

Definition at line 224 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 184 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 204 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 305 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 325 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 432 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 154 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 134 of file LogEntry.php.

◆ setDetails()

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

Set details

Parameters
string$details

Definition at line 272 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 335 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 234 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 402 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 355 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 375 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 442 of file LogEntry.php.

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

◆ setRecordPid()

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

Set record pid

Parameters
int$recordPid

Definition at line 214 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 174 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 194 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 295 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 315 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 422 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 49 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 43 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 79 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 103 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 109 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 33 of file LogEntry.php.

◆ $recordPid

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

PID of the record the event happened to

Definition at line 67 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 55 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 85 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 121 of file LogEntry.php.

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