IntroductionIntroduction
  CGI and SSICGI and SSI
  <pike> tag<pike> tag
  Pike scriptPike script
  ModulesModules
    <Module types>Module types<Module types>Module types
    <create()>create()<create()>create()
    <defvar()>defvar()<defvar()>defvar()
    <query()>query()<query()>query()
    <set()>set()<set()>set()
    <query_internal_location()>query_internal_location()<query_internal_location()>query_internal_location()
    <check_variable()>check_variable()<check_variable()>check_variable()
    <info()>info()<info()>info()
    <query_name()>query_name()<query_name()>query_name()
    <register_module()>register_module()<register_module()>register_module()
    <start()>start()<start()>start()
    <status()>status()<status()>status()
    <stop()>stop()<stop()>stop()
    <find_internal()>find_internal()<find_internal()>find_internal()
  Parser modulesParser modules
  Location modulesLocation modules
  Other module typesOther module types
  Request information objectRequest information object
  ResponsesResponses
  Library methodsLibrary methods
 
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.