Naïve implementation of RootController::LookupAction
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 6 Aug 2011 16:10:06 +0000 (12:10 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 6 Aug 2011 16:10:06 +0000 (12:10 -0400)
http/root_controller.php

index f420c7f5f44e10e03a62a2200122092ae0d9622d..ca09e42905fb94058ebb75dea4cbd7fa24733232 100644 (file)
@@ -154,5 +154,11 @@ class RootController
     @param string Class name.
   */
   public function LookupAction($class)
-  {}
+  {
+    $map = $this->url_map->map();
+    foreach ($map as $pattern => $action) {
+      if ($action == $class)
+        return $pattern;
+    }
+  }
 }