to_item($path); } public function to_item($path) { $path = trim($path, "/"); $path = $this->encode_path($path); if (!isset(self::$cache[$path])) { self::$cache[$path] = ORM::factory("item") ->viewable() ->where("relative_path_cache", "=", $path) ->find(); } return self::$cache[$path]; } public function __clone() { } }