MediaWiki REL1_37
LoggedOutEditToken.php
Go to the documentation of this file.
1<?php
25
38
42 public function __construct() {
43 parent::__construct( '', '', false );
44 }
45
46 protected function toStringAtTimestamp( $timestamp ) {
47 return self::SUFFIX;
48 }
49
50 public function match( $userToken, $maxAge = null ) {
51 return $userToken === self::SUFFIX;
52 }
53}
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