PHP 클래스 Psr7Middlewares\Middleware\FormTimestamp

상속: use trait Psr7Middlewares\Utils\FormTrait, use trait Psr7Middlewares\Utils\CryptTrait, use trait Psr7Middlewares\Utils\AttributeTrait
파일 보기 프로젝트 열기: oscarotero/psr7-middlewares

공개 메소드들

메소드 설명
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface Execute the middleware.
getGenerator ( Psr\Http\Message\ServerRequestInterface $request ) : callable | null Returns a callable to generate the inputs.
inputName ( string $inputName ) : self Set the field name.
max ( integer $seconds ) : self Max time before expire the form.
min ( integer $seconds ) : self Minimum time required.

비공개 메소드들

메소드 설명
isValid ( Psr\Http\Message\ServerRequestInterface $request ) : boolean Check whether the request is valid.

메소드 상세

__invoke() 공개 메소드

Execute the middleware.
public __invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface
$request Psr\Http\Message\ServerRequestInterface
$response Psr\Http\Message\ResponseInterface
$next callable
리턴 Psr\Http\Message\ResponseInterface

getGenerator() 공개 정적인 메소드

Returns a callable to generate the inputs.
public static getGenerator ( Psr\Http\Message\ServerRequestInterface $request ) : callable | null
$request Psr\Http\Message\ServerRequestInterface
리턴 callable | null

inputName() 공개 메소드

Set the field name.
public inputName ( string $inputName ) : self
$inputName string
리턴 self

max() 공개 메소드

Max time before expire the form.
public max ( integer $seconds ) : self
$seconds integer
리턴 self

min() 공개 메소드

Minimum time required.
public min ( integer $seconds ) : self
$seconds integer
리턴 self