19declare(strict_types=1);
31 private readonly
string $current_email,
32 private readonly
string $new_email,
33 private readonly
int $created_timestamp,
34 private readonly
Status $status = Status::Login,
35 private ?
string $token =
null
52 return $this->current_email;
57 return $this->new_email;
62 return $this->created_timestamp;
73 && time() < $this->created_timestamp + $this->status->getValidity($settings)) {
81 return $uri_builder->
build(
84 [StaticUrlHandler::CHANGE_EMAIL_OPERATIONS, $this->token]
90 return hash(
'md5',
"{$this->created_timestamp}-{$this->user_id}-{$this->current_email}-{$this->status->value}");
The scope of this class is split ilias-conform URI's into components.
isTokenValidForCurrentStatus(\ilSetting $settings)
getUriForStatus(URIBuilder $uri_builder)
__construct(private readonly int $user_id, private readonly string $current_email, private readonly string $new_email, private readonly int $created_timestamp, private readonly Status $status=Status::Login, private ?string $token=null)
build(string $namespace, ?ReferenceId $reference_id=null, array $additional_parameters=[])
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...