PossibleLengthField extends XmlField
Table of Contents
Methods
- __construct() : mixed
- decodeValue() : mixed
- Modifier for the field value.
- getClass() : mixed
- getName() : mixed
- getSubParser() : XmlParser|null
- isMultiple() : mixed
- parsePossibleLength() : array<string|int, mixed>
- Parses possible length field and returns corresponding array of possible lengths.
Methods
__construct()
public
__construct(mixed $name[, array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $name : mixed
- $options : array<string|int, mixed> = array()
decodeValue()
Modifier for the field value.
public
decodeValue(mixed $value) : mixed
Parameters
- $value : mixed
getClass()
public
static getClass() : mixed
getName()
public
getName() : mixed
getSubParser()
public
getSubParser() : XmlParser|null
Return values
XmlParser|nullisMultiple()
public
isMultiple() : mixed
parsePossibleLength()
Parses possible length field and returns corresponding array of possible lengths.
public
static parsePossibleLength(string $possibleLength) : array<string|int, mixed>
Parameters
- $possibleLength : string
-
Something like "3,5,7", or "[7-9]", or "6,[8-10]"
Return values
array<string|int, mixed> —Returns array of possible lengths. I.e. [3, 5, 7], or [7, 8, 9], or [6, 8, 10].