Controller_Routing_SegmentRepresents a segment of a route. A segment is a list of rules for matching a portion of a route. A collection of one or more segments comprise a route.
Located in /controller/lib/Controller/Routing/Segment.php (line 11)
| Class | Description |
|---|---|
Controller_Routing_ControllerSegment
|
A routing segment that matches a controller name in the URL. |
Controller_Routing_DynamicSegment
|
A routing segment that matches a URL based on a simple pattern with embedded parameter names. |
Controller_Routing_RegExSegment
|
A routing segment that matches a URL based on a regular expression. |
Controller_Routing_StaticSegment
|
A routing segment that matches a URL based on straight string comparison. |
Constructor __construct (line 20)
Constructor
compare (line 71)
Compares this segment to another segment.
Returns a value of -1, 0, 1 to indicate $segment is less than, equal to, or greater than this segment, respectively. This method is used to construct routing trees. Segments which are equal will all be grouped together in a branch.
match (line 58)
Test a portion of a URL against this segment. Returns true if this segment matches, false otherwise.
next_url_token (line 91)
Breaks a URL into a next token and remaining segment
set_next (line 38)
Set the next segment in the route
url_for (line 82)
Essentially the reverse of match(), this method assembles a URL segment from a set of parameters. If this segment cannot construct a URL chunk for the parameters, it returns false. Note that upon completion, $params contains only unconsumed parameters.
value (line 47)
Return the value of this segment in human readable form.
Documentation generated on Wed, 25 Apr 2012 09:46:45 -0700 by phpDocumentor 1.4.3