Interface

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ComplexSettings\ComplexSettingParserInterface

interface ComplexSettingParserInterface implements DynamicSettingParserInterface

Parses a string that contains dynamic settings ($foo;eng;bar$).

Example: "$vardir$/$storagedir$"

Methods

bool isDynamicSetting(string $setting)

Checks if $setting is considered to be dynamic.

from DynamicSettingParserInterface
array parseDynamicSetting(string $setting)

Parses $setting and returns a hash of corresponding arguments.

from DynamicSettingParserInterface
bool containsDynamicSettings(string $string)

Tests if $string contains dynamic settings.

array parseComplexSetting(string $string)

Parses dynamic settings.

Details

public bool isDynamicSetting(string $setting)

Checks if $setting is considered to be dynamic.

i.e. if $setting follows the expected format.

Parameters

string $setting

Return Value

bool

public array parseDynamicSetting(string $setting)

Parses $setting and returns a hash of corresponding arguments.

Returned hash will contain the following entries:.

Parameters

string $setting

Return Value

array

at line 27
public bool containsDynamicSettings(string $string)

Tests if $string contains dynamic settings.

Parameters

string $string

Return Value

bool

at line 36
public array parseComplexSetting(string $string)

Parses dynamic settings.

Parameters

string $string

Return Value

array key: original string, value: dynamic settings