AuthLog
extends AuthLog
in package
Attributes
- #[Entity]
- #[Index]
- $name: 'idx_auth_log_created_at'
- $columns: ['created_at']
- #[Index]
- $name: 'idx_auth_log_user'
- $columns: ['cms_system_users_user_id', 'created_at']
- #[Index]
- $name: 'idx_auth_log_event'
- $columns: ['event_type', 'created_at']
- #[Index]
- $name: 'idx_auth_log_ip'
- $columns: ['ip', 'created_at']
- #[Index]
- $name: 'idx_auth_log_client'
- $columns: ['api_client_id', 'created_at']
- #[Table]
- $name: 'cms_system_auth_log'
- #[TableAlias]
- 'authLog'
Table of Contents
Properties
- $apiClientId : int|null
- $createdAt : DateTime|null
- $eventType : string
- $id : int|null
- $ip : string|null
- $metadataJson : string|null
- $userAgent : string|null
- $userId : int|null
Methods
- __construct() : mixed
- callInitMethods() : void
- Calls `init{TraitName}()` for every used trait that defines such a method.
- getAllTraits() : array<string, string>
- Returns all traits the class uses, including those used by parent classes and nested traits.
- getApiClientId() : int|null
- getCreatedAt() : DateTime|null
- getEventType() : string
- getId() : int|null
- getIp() : string|null
- getMetadataJson() : string|null
- getUserAgent() : string|null
- getUserId() : int|null
- isPersisted() : bool
- setApiClientId() : $this
- setCreatedAt() : $this
- setEventType() : $this
- setId() : $this
- setIp() : $this
- setMetadataJson() : $this
- setUserAgent() : $this
- setUserId() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$apiClientId
protected
int|null
$apiClientId
= null
Attributes
- #[Column]
- $name: 'api_client_id'
- $type: 'integer'
- $nullable: true
- $options: ['unsigned' => true]
$createdAt
protected
DateTime|null
$createdAt
= null
Attributes
- #[Column]
- $name: 'created_at'
- $type: 'datetime'
$eventType
protected
string
$eventType
= ''
Attributes
- #[Column]
- $name: 'event_type'
- $type: 'string'
- $length: 40
$id
protected
int|null
$id
= null
Attributes
- #[Column]
- $type: 'integer'
- $name: 'auth_log_id'
- $options: ['unsigned' => true]
- #[GeneratedValue]
- #[Id]
$ip
protected
string|null
$ip
= null
Attributes
- #[Column]
- $name: 'ip'
- $type: 'string'
- $length: 45
- $nullable: true
- #[PersonalData]
- PersonalDataKind::Hidden
$metadataJson
protected
string|null
$metadataJson
= null
Attributes
- #[Column]
- $name: 'metadata_json'
- $type: 'text'
- $nullable: true
$userAgent
protected
string|null
$userAgent
= null
Attributes
- #[Column]
- $name: 'user_agent'
- $type: 'string'
- $length: 255
- $nullable: true
$userId
protected
int|null
$userId
= null
Attributes
- #[Column]
- $name: 'cms_system_users_user_id'
- $type: 'integer'
- $nullable: true
- $options: ['unsigned' => true]
Methods
__construct()
public
__construct([int|null $id = null ][, string $eventType = '' ][, int|null $userId = null ][, int|null $apiClientId = null ][, string|null $ip = null ][, string|null $userAgent = null ][, string|null $metadataJson = null ][, DateTime|null $createdAt = null ]) : mixed
Parameters
- $id : int|null = null
- $eventType : string = ''
- $userId : int|null = null
- $apiClientId : int|null = null
- $ip : string|null = null
- $userAgent : string|null = null
- $metadataJson : string|null = null
- $createdAt : DateTime|null = null
callInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getAllTraits()
Returns all traits the class uses, including those used by parent classes and nested traits.
public
getAllTraits() : array<string, string>
Return values
array<string, string>getApiClientId()
public
getApiClientId() : int|null
Return values
int|nullgetCreatedAt()
public
getCreatedAt() : DateTime|null
Return values
DateTime|nullgetEventType()
public
getEventType() : string
Return values
stringgetId()
public
getId() : int|null
Return values
int|nullgetIp()
public
getIp() : string|null
Return values
string|nullgetMetadataJson()
public
getMetadataJson() : string|null
Return values
string|nullgetUserAgent()
public
getUserAgent() : string|null
Return values
string|nullgetUserId()
public
getUserId() : int|null
Return values
int|nullisPersisted()
public
isPersisted() : bool
Return values
boolsetApiClientId()
public
setApiClientId(int|null $apiClientId) : $this
Parameters
- $apiClientId : int|null
Return values
$thissetCreatedAt()
public
setCreatedAt(DateTime|null $createdAt) : $this
Parameters
- $createdAt : DateTime|null
Return values
$thissetEventType()
public
setEventType(string $eventType) : $this
Parameters
- $eventType : string
Return values
$thissetId()
public
setId(int|null $id) : $this
Parameters
- $id : int|null
Return values
$thissetIp()
public
setIp(string|null $ip) : $this
Parameters
- $ip : string|null
Return values
$thissetMetadataJson()
public
setMetadataJson(string|null $metadataJson) : $this
Parameters
- $metadataJson : string|null
Return values
$thissetUserAgent()
public
setUserAgent(string|null $userAgent) : $this
Parameters
- $userAgent : string|null
Return values
$thissetUserId()
public
setUserId(int|null $userId) : $this
Parameters
- $userId : int|null
Return values
$thisgetTraitsRecursive()
Walks the trait list recursively and collects nested traits too.
private
static getTraitsRecursive(array<string, string> $traits) : array<string, string>
Parameters
- $traits : array<string, string>