\DeviceAtlas\DeviceDynamicStringExtractor

The "string" dynamic value extractor extracts a dynamic value without validating the extracted value.

Summary

Methods
Properties
Constants
__construct()
getDynamicValue()
getDelimitersBeforeHandler()
getDelimitersAfterHandler()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$delimitersBeforeHandler
$delimitersAfterHandler
N/A

Properties

$delimitersBeforeHandler

$delimitersBeforeHandler : 

Type

$delimitersAfterHandler

$delimitersAfterHandler : 

Type

Methods

__construct()

__construct(  $delimitersBeforeHandler,   $delimitersAfterHandler) 

Parameters

$delimitersBeforeHandler
$delimitersAfterHandler
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

getDynamicValue()

getDynamicValue(string  $identifier, integer  $startIndex) : string|null

Extracts the characters between a valid delimiter and up to the next delimiter. The ending delimiter can be any delimiter but the starting delimiter must match the defined "delimiterBeforeDynamicValue". The extracted value is not validated and is returned as is.

Some extractors may perform validation to ensure the extracted value is compliant.

Parameters

string $identifier

The identifier string to extract the dynamic value from

integer $startIndex

The character index in the identifier where the dynamic value starts

Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

string|null —

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

getDelimitersBeforeHandler()

getDelimitersBeforeHandler() 

Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

getDelimitersAfterHandler()

getDelimitersAfterHandler() 

Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275