previo | siguiente

ad_page_contract


ad_page_contract allows the programmer to define the interface between a template and an HTTP: request. The syntax is:

ad_page_contract {
    documentation section
} {
    query variable declarations
} -properties {
    template datasources set by this script
}
  • documentation section Generally should include a short description of the template's functionality, the function author (@author Don Baccus (dhogaza@pacifier.com)), and CVS tags.

  • query variable declarations This section defines the query variables expected by the template, their datatypes, and whether or not they're required. Examples:
       a:integer
       b:html,optional
    

  • template datasources set by this script This block defines the datasources meant to be visible to the script's associated ADP file. Currently, this block serves a documentary purpose only - there is no enforcement.

Don Baccus (dhogaza@pacifier.com)

Don Baccus (dhogaza@pacifier.com)