/** * Returns a copy of the current URI * * @return object a LPC_URI instance representing the current URI */ public static function getCurrent() { if (empty(self::$currentInstance)) self::$currentInstance = new LPC_URI(); return self::$currentInstance->dupe(); }