Changes between Version 17 and Version 18 of ModParrotHLLDocs
- Timestamp:
- 12/25/08 21:45:50 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ModParrotHLLDocs
v17 v18 254 254 === The Context Object === 255 255 256 You might be wondering where metahandlers get information like the previously mentioned Apache::RequestRecobject. mod_parrot passes a single {{{ModParrot;Context}}} object as the lone argument to every metahandler. This "context" object contains methods for accessing information relevant to the particular phase of a metahandler. During the response phase for instance, the {{{request_rec}}} method returns the current {{{Apache;RequestRec}}} object. That method would return a NULL PMC during a phase like {{{open_logs}}}.256 You might be wondering where metahandlers get information like the previously mentioned {{{Apache::RequestRec}}} object. mod_parrot passes a single {{{ModParrot;Context}}} object as the lone argument to every metahandler. This "context" object contains methods for accessing information relevant to the particular phase of a metahandler. During the response phase for instance, the {{{request_rec}}} method returns the current {{{Apache;RequestRec}}} object. That method would return a NULL PMC during a phase like {{{open_logs}}}. 257 257 258 258 {{{ModParrot;Context}}} provides the following methods: