Changes between Version 8 and Version 9 of ModParrotHLLDocs

Show
Ignore:
Timestamp:
12/25/08 20:36:16 (6 years ago)
Author:
jhorwitz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ModParrotHLLDocs

    v8 v9  
    119119 * {{{errmsg}}}: a message displayed when the directive is misused 
    120120 
     121Constants for {{{args_how}}} and {{{req_override}}} are found in the {{{ModParrot;Apache;Constants;table}}} hash from {{{ModParrot/Apache/Constants.pbc}}}. 
     122 
    121123''Values for {{{args_how}}}'' 
    122124 
     
    147149||{{{EXEC_ON_READ}}}||not yet implemented|| 
    148150 
     151The directive hashes should be stored in an array for use during module registration. 
     152 
     153''Example: The {{{ParrotHandler}}} definition from the PIR HLL module'' 
     154 
     155{{{ 
     156    .local pmc ap_const 
     157    .local pmc cmd 
     158 
     159    ap_const = get_root_global ['ModParrot'; 'Apache'; 'Constants'], 'table' 
     160 
     161    cmd = new 'Hash' 
     162    $P0 = new 'String' 
     163    $P0 = 'ParrotHandler' 
     164    cmd['name'] = $P0 
     165    $P0 = new 'Integer' 
     166    $P0 = ap_const['TAKE1'] 
     167    cmd['args_how'] = $P0 
     168    cmd['func'] = cmd_parrothandler 
     169    $P0 = new 'Integer' 
     170    $P0 = ap_const['OR_AUTHCFG'] 
     171    cmd['req_override'] = $P0 
     172    $P0 = new 'String' 
     173    $P0 = 'usage: ParrotHeaderParserHandler handler-name' 
     174    cmd['errmsg'] = $P0 
     175}}} 
    149176 
    150177=== Accessing mod_parrot's Configuration ===