gyro/core/controller/base/routes/catchallroute.cls.php
Go to the documentation of this file.00001 <?php 00002 require_once dirname(__FILE__) . '/routebase.cls.php'; 00003 00004 /** 00005 * Process all URLs that no one seems responsible for 00006 * 00007 * @author Gerd Riesselmann 00008 * @ingroup Controller 00009 */ 00010 class CatchAllRoute extends RouteBase { 00011 /** 00012 * Weights first path against the second. 00013 * 00014 * Always returns a high number. 00015 * The return value is smaller the better the match is. 0 indicates a perfect match 00016 */ 00017 public function weight_against_path($path) { 00018 $tmp = trim($path, '/'); 00019 if (!empty($tmp)) { 00020 $this->path_further = explode('/', $tmp); 00021 } 00022 00023 return self::WEIGHT_NO_MATCH - 1; 00024 } 00025 } 00026 ?>