Documentation

DynamicVersionExtractor
in package
implements DynamicValueExtractor

The "version" dynamic value extractor extracts a dynamic value and ensures it is a version value.

Tags
author

DeviceAtlas Limited

Table of Contents

Interfaces

DynamicValueExtractor

Properties

$dAH  : mixed
$dBH  : mixed
$DECIMAL_POINT  : mixed
$dS  : mixed
$kP  : mixed
$p  : mixed
$sA  : mixed
$sS  : mixed

Methods

__construct()  : mixed
getDecimalSeperator()  : mixed
getDelimitersAfterHandler()  : mixed
getDelimitersBeforeHandler()  : mixed
getDynamicValue()  : string|null
Extracts the characters between a valid delimiter (if defined) and up to the next delimiter. By default the ending delimiter is one of the standard set but a custom delimiter can be defined instead. The extracted value is loosely validated to ensure it is a version number and fits the defined version number criteria.
getPrefix()  : mixed
getSuffixSeperator()  : mixed
isKeepPrefix()  : mixed
isSuffixAllowed()  : mixed

Properties

Methods

__construct()

public __construct(mixed $delimitersBeforeHandler, mixed $delimitersAfterHandler, mixed $prefix, mixed $keepPrefix, mixed $decimalSeperator, mixed $suffixAllowed, mixed $suffixSeperator) : mixed
Parameters
$delimitersBeforeHandler : mixed
$delimitersAfterHandler : mixed
$prefix : mixed
$keepPrefix : mixed
$decimalSeperator : mixed
$suffixAllowed : mixed
$suffixSeperator : mixed

getDynamicValue()

Extracts the characters between a valid delimiter (if defined) and up to the next delimiter. By default the ending delimiter is one of the standard set but a custom delimiter can be defined instead. The extracted value is loosely validated to ensure it is a version number and fits the defined version number criteria.

public getDynamicValue(string $identifier, int $startIndex) : string|null
Parameters
$identifier : string

The identifier string to extract the dynamic version value from

$startIndex : int

The character index in the identifier where the dynamic value starts

Return values
string|null

The dynamic value string or null if no dynamic value found.


        
On this page

Search results