case "deleteaccount": $ctrl = new Deleteacct(); break; default: /* Check if arg is an object guid */ $obj = new DBObject(); if ($obj->isGUID($argv[0])) { $ctrl = new Obj(); break; } /* No page to show for requested path */ throw new Exception("The requested path is not valid."); break;