MediaWiki REL1_31
LoggedOutEditToken.php
Go to the documentation of this file.
1<?php
25
36 public function __construct() {
37 parent::__construct( '', '', false );
38 }
39
40 protected function toStringAtTimestamp( $timestamp ) {
41 return self::SUFFIX;
42 }
43
44 public function match( $userToken, $maxAge = null ) {
45 return $userToken === self::SUFFIX;
46 }
47}
Value object representing a logged-out user's edit token.
toStringAtTimestamp( $timestamp)
Get the string representation of the token at a timestamp.
match( $userToken, $maxAge=null)
Test if the token-string matches this token.
Value object representing a CSRF token.
Definition Token.php:32
const SUFFIX
CSRF token suffix.
Definition Token.php:35