Time
extends Base
in package
Requires time to be in a specific format. Defaults to g:i:s A
Table of Contents
Properties
- $_Format : string
Methods
- __construct() : mixed
- isValid() : bool
- Returns true if validation is successful
- setFormat() : void
- validate() : bool
Properties
$_Format
private
string
$_Format
= 'g:i:s A'
Methods
__construct()
public
__construct() : mixed
isValid()
Returns true if validation is successful
public
isValid(mixed $data) : bool
Parameters
- $data : mixed
Return values
boolsetFormat()
public
setFormat(mixed $Format) : void
Parameters
- $Format : mixed
validate()
protected
validate(mixed $CheckTime) : bool
Parameters
- $CheckTime : mixed