class ApacheConfigurator implements ConfiguratorInterface (View source)

Methods

string
getConfiguredRule(string $configuration, RuleInterface $rule)

Gets the rule, if present in a configuration.

bool
hasRule(string $configuration, RuleInterface $rule)

Checks if a configuration contains a rule.

string
addRule(string $configuration, RuleInterface $rule)

Adds a rule to the configuration (if not already there).

string
removeRule(string $configuration, RuleInterface $rule)

Removes a rule from the configuration (if it's there).

Details

protected string getConfiguredRule(string $configuration, RuleInterface $rule)

Gets the rule, if present in a configuration.

Parameters

string $configuration The whole configuration.
RuleInterface $rule The rule to be checked.

Return Value

string Returns the whole rule found (or '' if not found)

bool hasRule(string $configuration, RuleInterface $rule)

Checks if a configuration contains a rule.

Parameters

string $configuration The whole configuration.
RuleInterface $rule The rule to be checked.

Return Value

bool

See also

\Concrete\Core\Service\Configuration\ConfiguratorInterface::hasRule()

string addRule(string $configuration, RuleInterface $rule)

Adds a rule to the configuration (if not already there).

Parameters

string $configuration The whole configuration.
RuleInterface $rule The rule to be added to the configuration.

Return Value

string Returns the modified configuration.

See also

\Concrete\Core\Service\Configuration\ConfiguratorInterface::addRule()

string removeRule(string $configuration, RuleInterface $rule)

Removes a rule from the configuration (if it's there).

Parameters

string $configuration The whole configuration.
RuleInterface $rule The rule to be removed from the configuration.

Return Value

string Returns the modified configuration.

See also

\Concrete\Core\Service\Configuration\ConfiguratorInterface::removeRule()