sfRequestRoute represents a route that is request aware.
Method Summary
-
string
generate($params, $context, $absolute)
Generates a URL from the given parameters.
-
Boolean
matchesParameters($params, $context)
Returns true if the parameters match this route, false otherwise.
-
array
matchesUrl($url, $context)
Returns true if the URL matches this route, false otherwise.
-
__construct()
Constructor.
Methods inherited from sfRoute
bind , compile , compileForSeparator , compileForText , compileForVariable , fixDefaults , fixRequirements , fixSuffix , generate , generateStarParameter , generateWithTokens , getDefaultOptions , getDefaultParameters , getDefaults , getOptions , getParameters , getPattern , getRegex , getRequirements , getTokens , getVariables , hasStarParameter , initializeOptions , isBound , matchesParameters , matchesUrl , mergeArrays , parseStarParameter , postCompile , preCompile , serialize , setDefaultOptions , setDefaultParameters , tokenize , tokenizeBufferAfter , tokenizeBufferBefore , unserialize , __construct
Method Details
-
(string) generate ($params, $context, $absolute)
Browse code
| $params |
The parameter values |
| $context |
The context |
| $absolute |
Whether to generate an absolute URL |
Generates a URL from the given parameters.
returns The generated URL
-
(Boolean) matchesParameters ($params, $context)
Browse code
| $params |
The parameters |
| $context |
The context |
Returns true if the parameters match this route, false otherwise.
returns true if the parameters match this route, false otherwise.
-
(array) matchesUrl ($url, $context)
Browse code
| $url |
The URL |
| $context |
The context |
Returns true if the URL matches this route, false otherwise.
returns An array of parameters
-
Constructor.
Applies a default sf_method requirements of GET or HEAD.
|