CoolCMS API

UserRoleRel extends BaseEntity
in package

AbstractYes
Attributes
#[MappedSuperclass]
#[TableAlias]
$alias: 'userRoleRel'

Table of Contents

Properties

$userId  : int
$userRoleId  : int

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.
getUserId()  : int
getUserRoleId()  : int
setUserId()  : $this
setUserRoleId()  : $this
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$userId

protected int $userId = 0
Attributes
#[Column]
$name: 'cms_system_users_user_id'
$type: 'integer'
$options: ['unsigned' => true]
#[ExternalReadonly]
#[Id]

$userRoleId

protected int $userRoleId = 0
Attributes
#[Column]
$name: 'cms_system_user_roles_user_role_id'
$type: 'integer'
$options: ['unsigned' => true]
#[Id]

Methods

__construct()

public __construct([int $userId = 0 ][, int $userRoleId = 0 ]) : mixed
Parameters
$userId : int = 0
$userRoleId : int = 0

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>

getUserId()

public getUserId() : int
Return values
int

getUserRoleId()

public getUserRoleId() : int
Return values
int

setUserId()

public setUserId(int $userId) : $this
Parameters
$userId : int
Return values
$this

setUserRoleId()

public setUserRoleId(int $userRoleId) : $this
Parameters
$userRoleId : int
Return values
$this

getTraitsRecursive()

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>
Return values
array<string, string>
On this page

Search results