Selen

DateTimeFormat
in package
implements ValueValidateInterface

Table of Contents

Interfaces

ValueValidateInterface

Properties

$allowEmpty  : bool
$format  : string

Methods

__construct()  : mixed
execute()  : ValidateResult
バリデーションを実行します

Properties

$allowEmpty

private bool $allowEmpty

空文字の許容ステータスを保持します(true: 許容する, false: 許容しない)

Methods

__construct()

public __construct(string $format[, bool $allowEmpty = false ]) : mixed
Parameters
$format : string

日付フォーマットを指定します

$allowEmpty : bool = false

空文字を許容するか指定します。(true: 許容する, false: 許容しない)

execute()

バリデーションを実行します

public execute(mixed $value, ValidateResult $result) : ValidateResult
Parameters
$value : mixed

バリデーション対象の値を渡します

$result : ValidateResult

バリデーション結果を格納するインスタンスを渡します

Return values
ValidateResult

バリデーション結果を返します


        
On this page

Search results