@@ 14-32 (lines=19) @@ | ||
11 | * @author Brent Christensen |
|
12 | * @since $VID:$ |
|
13 | */ |
|
14 | class MatchAllRouteSpecifications extends MultiRouteSpecification |
|
15 | { |
|
16 | ||
17 | /** |
|
18 | * returns true if current request matches specification |
|
19 | * |
|
20 | * @since $VID:$ |
|
21 | * @return boolean |
|
22 | */ |
|
23 | public function isMatchingRoute() |
|
24 | { |
|
25 | foreach ($this->specifications as $specification) { |
|
26 | if (! $specification->isMatchingRoute()) { |
|
27 | return false; |
|
28 | } |
|
29 | } |
|
30 | return true; |
|
31 | } |
|
32 | } |
|
33 |
@@ 14-32 (lines=19) @@ | ||
11 | * @author Brent Christensen |
|
12 | * @since $VID:$ |
|
13 | */ |
|
14 | class MatchAnyRouteSpecification extends MultiRouteSpecification |
|
15 | { |
|
16 | ||
17 | /** |
|
18 | * returns true if current request matches specification |
|
19 | * |
|
20 | * @since $VID:$ |
|
21 | * @return boolean |
|
22 | */ |
|
23 | public function isMatchingRoute() |
|
24 | { |
|
25 | foreach ($this->specifications as $specification) { |
|
26 | if ($specification->isMatchingRoute()) { |
|
27 | return true; |
|
28 | } |
|
29 | } |
|
30 | return false; |
|
31 | } |
|
32 | } |
|
33 |