MediaWiki  master
LoggedOutEditToken.php
Go to the documentation of this file.
1 <?php
25 
35 class LoggedOutEditToken extends Token {
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&#39;s edit token.
Value object representing a CSRF token.
Definition: Token.php:32
toStringAtTimestamp( $timestamp)
match( $userToken, $maxAge=null)