class FullTransformer extends FullTransformer
Alias of {@link \Symfony\Component\Intl\DateFormatter\DateFormat\FullTransformer}.
Methods
|
__construct(string $pattern, string $timezone)
Constructor |
from FullTransformer | |
| Transformer[] |
getTransformers()
Return the array of Transformer objects |
from FullTransformer |
| string |
format(DateTime $dateTime)
Format a DateTime using ICU dateformat pattern |
from FullTransformer |
| string |
formatReplace(string $dateChars, DateTime $dateTime)
Return the formatted ICU value for the matched date characters |
from FullTransformer |
| int |
parse(DateTime $dateTime, string $value)
Parse a pattern based string to a timestamp value |
from FullTransformer |
| string |
getReverseMatchingRegExp(string $pattern)
Retrieve a regular expression to match with a formatted value. |
from FullTransformer |
| Boolean |
isQuoteMatch(string $quoteMatch)
Check if the first char of a string is a single quote |
from FullTransformer |
| string |
replaceQuoteMatch(string $quoteMatch)
Replaces single quotes at the start or end of a string with two single quotes |
from FullTransformer |
Details
in FullTransformer at line 44
public
__construct(string $pattern, string $timezone)
Constructor
in FullTransformer at line 78
public Transformer[]
getTransformers()
Return the array of Transformer objects
in FullTransformer at line 90
public string
format(DateTime $dateTime)
Format a DateTime using ICU dateformat pattern
in FullTransformer at line 111
public string
formatReplace(string $dateChars, DateTime $dateTime)
Return the formatted ICU value for the matched date characters
in FullTransformer at line 141
public int
parse(DateTime $dateTime, string $value)
Parse a pattern based string to a timestamp value
in FullTransformer at line 178
public string
getReverseMatchingRegExp(string $pattern)
Retrieve a regular expression to match with a formatted value.
in FullTransformer at line 216
public Boolean
isQuoteMatch(string $quoteMatch)
Check if the first char of a string is a single quote
in FullTransformer at line 228
public string
replaceQuoteMatch(string $quoteMatch)
Replaces single quotes at the start or end of a string with two single quotes