com\setasign\Konquadrat\Object\Custom

UserTplTrait Konquadrat Helper Trait for objectTemplate "UserTpl"

File: /Konquadrat/src/Object/Custom/generated/UserTplTrait.php

Used in

Uses

Summary

Constants

ACTION_SET_PERMISSION

public const Traits\UserTpl::ACTION_SET_PERMISSION = 'setPermission'

Static Properties

$ACTION_SET_PERMISSION

static public string Traits\UserTpl::$ACTION_SET_PERMISSION = 'setPermission'

Properties

$loginIsActive

protected ?bool Traits\UserTpl::$loginIsActive

Cached status whether the login is active

$loginTimeout

$permissionsLogger

protected ?\Psr\Log\LoggerInterface Traits\UserTpl::$permissionsLogger

Methods

checkLogin()

public Traits\UserTpl::checkLogin (
string $sessionId,
string $windowId
): bool
Parameters
$sessionId: string
 
$windowId: string
 
Exceptions

Throws \com\setasign\Konquadrat\Exception

Throws \com\setasign\Konquadrat\Object\ObjectSaveException

createDashboard()

createResetPasswordLink()

getActive()

public Traits\UserTpl::getActive (
void
): bool
Exceptions

Throws \Exception

getDataoriginName()

public Traits\UserTpl::getDataoriginName (
void
): string

getForgottenEmailText()

protected Traits\UserTpl::getForgottenEmailText (
\com\setasign\SetaFramework\Bootstrap\DomainName $domainName,
\com\setasign\Konquadrat\Helper\DateTime $dateTimeHelper,
string $resetPasswordLink
): ?string
Parameters
$domainName: \com\setasign\SetaFramework\Bootstrap\DomainName
 
$dateTimeHelper: \com\setasign\Konquadrat\Helper\DateTime
 
$resetPasswordLink: string
 

getHasActiveResetPasswordHash()

getHasNoPassword()

public Traits\UserTpl::getHasNoPassword (
void
): bool

getTabHeader()

public Traits\UserTpl::getTabHeader (
void
): string

getUniqueName()

public Traits\UserTpl::getUniqueName (
void
): string

initAndWakeupNamedObject()

initUserTpl()

public Traits\UserTpl::initUserTpl (
void
): void

login()

public Traits\UserTpl::login (
string|User\IgnorePasswordCheck $password,
string $sessionId,
string $windowId,
string $remoteAddress
): static
Parameters
$password: string|User\IgnorePasswordCheck
 
$sessionId: string
 
$windowId: string
 
$remoteAddress: string
 
Exceptions

Throws \com\setasign\Konquadrat\Exception

Throws \com\setasign\Konquadrat\Object\ObjectSaveException

requireLogin()

public Traits\UserTpl::requireLogin (
string $sessionId,
string $windowId
): void
Parameters
$sessionId: string
 
$windowId: string
 
Exceptions

Throws User\LoginException

sendAccountWasCreatedAction()

Parameters
$mailer: \Symfony\Component\Mailer\MailerInterface
 
$applicationConfig: \com\setasign\SetaFramework\Application\ApplicationConfig
 
$absoluteUriHelper: \com\setasign\SetaFramework\View\Helper\AbsoluteUri
 
Exceptions

Throws \com\setasign\Konquadrat\Exception

Throws \Symfony\Component\Mailer\Exception\TransportExceptionInterface

sendResetPasswordLink()

Parameters
$mailer: \Symfony\Component\Mailer\MailerInterface
 
$domainName: \com\setasign\SetaFramework\Bootstrap\DomainName
 
$absoluteUriHelper: \com\setasign\SetaFramework\View\Helper\AbsoluteUri
 
$dateTimeHelper: \com\setasign\Konquadrat\Helper\DateTime
 
$applicationConfig: \com\setasign\SetaFramework\Application\ApplicationConfig
 
Exceptions

Throws \com\setasign\Konquadrat\Exception

Throws \com\setasign\Konquadrat\Object\ObjectSaveException

Throws \Symfony\Component\Mailer\Exception\TransportExceptionInterface

sendResetPasswordLinkAction()

setExpiryDate()

public Traits\UserTpl::setExpiryDate (
mixed $date
): void
Parameters
$date: mixed
 
Exceptions

Throws \com\setasign\SetaFramework\Permissions\PermissionException

setGroup()

public Traits\UserTpl::setGroup (
$group
): void
Parameters
$group
 

setLastSeen()

public Traits\UserTpl::setLastSeen (
$lastSeen
): static

This method will prevent changing the last seen flag by yourself.

Parameters
$lastSeen
 

setSsoOnly()

public Traits\UserTpl::setSsoOnly (
$ssoOnly
): void
Parameters
$ssoOnly
 
Exceptions

Throws \com\setasign\SetaFramework\Permissions\PermissionException

updateLastSeen()

wakeupUserTpl()

public Traits\UserTpl::wakeupUserTpl (
void
): void