Controller_Routing_RegExSegmentA routing segment that matches a URL based on a regular expression.
Located in /controller/lib/Controller/Routing/RegExSegment.php (line 9)
Controller_Routing_Segment | --Controller_Routing_RegExSegment
Controller_Routing_RegExSegment
__construct
(string $pattern, [Controller_Routing_Segment $next = null])
mixed
$pattern
(line 11)
Inherited from Controller_Routing_Segment
Controller_Routing_Segment::$next
Constructor __construct (line 19)
Constructor
compare (line 65)
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 43)
Test a portion of a URL against this segment. Returns true if this segment matches, false otherwise.
url_for (line 80)
Essentially the reverse of match(), this method assembles a URL segment from a set of parameters. Note that a RegExSegment is never capable of constructing a URL and so will return false.
value (line 30)
Return the value of this segment in human readable form.
Inherited From Controller_Routing_Segment
Controller_Routing_Segment::__construct()
Controller_Routing_Segment::compare()
Controller_Routing_Segment::match()
Controller_Routing_Segment::next()
Controller_Routing_Segment::next_url_token()
Controller_Routing_Segment::set_next()
Controller_Routing_Segment::url_for()
Controller_Routing_Segment::value()
Documentation generated on Wed, 25 Apr 2012 09:46:45 -0700 by phpDocumentor 1.4.3