ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
NullTokenHandler.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 
27 {
28  public function generateToken(
29  int $offset,
30  ?\DateTimeImmutable $from_date,
31  ?\DateTimeImmutable $until_date
32  ): string {
33  return '';
34  }
35 
36  public function isTokenValid(string $token): bool
37  {
38  return false;
39  }
40 
42  RequestInterface $request,
43  string $token
44  ): RequestInterface {
45  return new NullRequest();
46  }
47 
48  public function getOffsetFromToken(string $token): int
49  {
50  return 0;
51  }
52 }
appendArgumentsFromTokenToRequest(RequestInterface $request, string $token)
generateToken(int $offset, ?\DateTimeImmutable $from_date, ?\DateTimeImmutable $until_date)
$token
Definition: xapitoken.php:70