Overview
Rewrites URI action paths, and creates URI paths from the rewrite rules.
Configuration Keys
Constants
None.
Public Properties
The Solar_Uri_Rewrite class has no public properties; try the list of all properties.
Public Methods
These are all the public methods in the Solar_Uri_Rewrite class.
You can also view the list of all public, protected, and private methods.
-
__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.