Declaration:
<? interface LocationRewriter ?>
Description: This interface is used to rewrite the URLs generated by the Location::toURL() method calls. More specifically, the Location::toURL will look up the config option locationRewriter of the freeform package and will call its LocationRewriter::rewrite() passing itself as the parameter. If this config option is unspecified, then Location objects will return standard URL. This feature is useful when used in combination with your web server URL rewrite engine (like Apache's mod_rewrite). You can create rules that will map rewritten URLs to real ones and write your own LocationRewriter to force Locations to create rewritten URLs. Please note that while the LocationRewriter::rewrite() method must return the absolute URL (including the protocol, host, port and absolute path), the LocationRewriter::decode() method acts on the query string only, which is passed as a single parameter. Authors:
Methods:
|
|