StaticOptions
Options related to a static variable.
Table of Contents
Properties
- $createFromFormatFunction : string|callable|null
- Function to call instead of createFromFormat.
- $formatFunction : string|callable|null
- Function to call instead of format.
- $parseFunction : string|callable|null
- Function to call instead of parse.
Methods
- isStrictModeEnabled() : bool
- Returns true if the strict mode is globally in use, false else.
- resetMonthsOverflow() : void
- resetYearsOverflow() : void
- shouldOverflowMonths() : bool
- Get the month overflow global behavior (can be overridden in specific instances).
- shouldOverflowYears() : bool
- Get the month overflow global behavior (can be overridden in specific instances).
- useMonthsOverflow() : void
- useStrictMode() : void
- useYearsOverflow() : void
Properties
$createFromFormatFunction
Function to call instead of createFromFormat.
protected
static string|callable|null
$createFromFormatFunction
$formatFunction
Function to call instead of format.
protected
static string|callable|null
$formatFunction
$parseFunction
Function to call instead of parse.
protected
static string|callable|null
$parseFunction
Methods
isStrictModeEnabled()
Returns true if the strict mode is globally in use, false else.
public
static isStrictModeEnabled() : bool
(It can be overridden in specific instances.)
Return values
boolresetMonthsOverflow()
public
static resetMonthsOverflow() : void
Tags
resetYearsOverflow()
public
static resetYearsOverflow() : void
Tags
shouldOverflowMonths()
Get the month overflow global behavior (can be overridden in specific instances).
public
static shouldOverflowMonths() : bool
Return values
boolshouldOverflowYears()
Get the month overflow global behavior (can be overridden in specific instances).
public
static shouldOverflowYears() : bool
Return values
booluseMonthsOverflow()
public
static useMonthsOverflow([bool $monthsOverflow = true ]) : void
Parameters
- $monthsOverflow : bool = true
Tags
useStrictMode()
public
static useStrictMode([bool $strictModeEnabled = true ]) : void
Parameters
- $strictModeEnabled : bool = true
Tags
useYearsOverflow()
public
static useYearsOverflow([bool $yearsOverflow = true ]) : void
Parameters
- $yearsOverflow : bool = true