TableAccessSubject implements AccessSubjectInterface

Representation of a table or table column that shall be handled during the sudo mode process.

Internal

Table of Contents

Interfaces

AccessSubjectInterface
Base interface for a subject that shall be handled during the sudo mode process.

Properties

$group  : string|null
If given, grants access to same-group sudo mode subjects.
$lifetime  : AccessLifetime
The distinct lifetime type, e.g. XS, S, M, L, XL
$once  : bool
If true, the subject may only be used once and requires a new grant for the same task.
$subject  : string
The table column subject, e.g. `tx_foo`, `tx_foo.bar` or `tx_foo.bar.123`

Methods

__construct()  : mixed
fromArray()  : static
Reconstitutes a subject object from its serialized representation.
getGroup()  : string|null
If given, grants access to same-group sudo mode subjects.
getIdentity()  : string
Provides a unique string identifier of the subject.
getLifetime()  : AccessLifetime
Provides a distinct lifetime type, e.g. XS, S, M, L, XL.
getSubject()  : string
Provides the actual subject name (e.g. a route, an aspect, a resource, ...)
isOnce()  : bool
If true, the subject may only be used once and requires a new grant for the same task.
jsonSerialize()  : array<string|int, mixed>

Properties

$group

If given, grants access to same-group sudo mode subjects.

protected string|null $group

$once

If true, the subject may only be used once and requires a new grant for the same task.

protected bool $once

$subject

The table column subject, e.g. `tx_foo`, `tx_foo.bar` or `tx_foo.bar.123`

protected string $subject

Methods

__construct()

public final __construct(string $subject[, AccessLifetime|null $lifetime = null ][, string|null $group = null ][, bool|null $once = null ]) : mixed
Parameters
$subject : string
$lifetime : AccessLifetime|null = null
$group : string|null = null
$once : bool|null = null

fromArray()

Reconstitutes a subject object from its serialized representation.

public static fromArray(array<string|int, mixed> $data) : static
Parameters
$data : array<string|int, mixed>
Return values
static

getGroup()

If given, grants access to same-group sudo mode subjects.

public getGroup() : string|null
Return values
string|null

getIdentity()

Provides a unique string identifier of the subject.

public getIdentity() : string
Return values
string

getSubject()

Provides the actual subject name (e.g. a route, an aspect, a resource, ...)

public getSubject() : string
Return values
string

isOnce()

If true, the subject may only be used once and requires a new grant for the same task.

public isOnce() : bool
Return values
bool

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results