find_internal()
mixed find_internal(string path, object id)
The find_internal() method is called when a file is
fetched from this modules internal mount path. All modules have an
unique mount path that can be used if the module needs to serve some
files, but it doesn't matter what URL those files get. The
Graphic text module does for example use an internal
mount point for the images it has generated. Modules that has no need
for an internal mount point does not need to implement this method.
The return value of this method is either a mapping created with
one of the response methods, see the responses
chapter, or a Stdio.File object containing the requested
file.
All URLs to files within the internal mount point should be
generated by the module itself. It is necessary to call the
query_internal_location() method to find out where the
internal mount point is located.
|