Methods

All methods in the Solar_Uri_Rewrite class.

Public

__construct()

Constructor.

__destruct()

Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().

dump()

Convenience method for getting a dump the whole object, or one of its properties, or an external variable.

explain()

Explains the result of the last match() attempt.

getPath()

Look up a named rewrite rule, replace the regex token placeholders in the pattern with data values, and return the resulting path.

getReplacement()

Gets the replacement regex for a token.

getReplacements()

Gets all replacement regex tokens.

getRule()

Gets a rewrite rule by its key; the key may be a pattern, or a named rule.

getRules()

Gets all the rewrite rules.

locale()

Looks up class-specific locale strings based on a key.

match()

Given a URI path, matches it against a rewrite rule and returns the rewritten path.

mergeReplacements()

Merges a new list of replacement regex tokens with the existing ones; the new ones will replace any existing replacements with the same keys.

mergeRules()

Merges a new list of rules with the existing ones; the new ones will replace any existing rules with the same keys.

resetReplacements()

Reset all replacement regex tokens.

resetRules()

Reset all the rewrite rules.

setReplacement()

Sets one replacement regex token.

setRule()

Sets one rewrite rule; adds it if it is not there, or changes it if it is.

Protected

_buildConfig()

Builds and returns the default config for a class, including all configs inherited from its parents.

_exception()

Convenience method for returning exceptions with localized text.

_postConfig()

A hook that activates after _buildConfig() in the constructor.

_postConstruct()

Post-construction tasks to complete object construction.

_preConfig()

A hook that activates before _buildConfig() in the constructor.

Private

None.



Local