00001 <?php
00002 require_once dirname(__FILE__) . '/routebase.cls.php';
00003
00004
00005
00006
00007
00008
00009
00010 class ExactMatchRoute extends RouteBase {
00011
00012
00013
00014
00015
00016
00017 public function weight_against_path($path) {
00018 $path = trim($path, '/');
00019 $path_to_weight = trim($this->path, '/');
00020
00021
00022 if ($path != $path_to_weight) {
00023
00024 return self::WEIGHT_NO_MATCH;
00025 }
00026 else {
00027 return self::WEIGHT_FULL_MATCH;
00028 }
00029 }
00030
00031
00032
00033
00034
00035
00036
00037 protected function build_url_path($params) {
00038 return ltrim($this->path, '/');
00039 }
00040 }