Changes between Version 10 and Version 11 of ModParrotHLLDocs

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

--

Legend:

Unmodified
Added
Removed
Modified
  • ModParrotHLLDocs

    v10 v11  
    197197}}} 
    198198 
     199Only the directory configuration is passed to the callback.  If it needed to update the server configuration instead (i.e. for {{{ParrotPostConfig}}}), it would call {{{ModParrot;Apache;get_config}}}, which has the following signature: 
     200 
     201{{{PMC get_config(STRING module_name, PMC per_dir_config)}}} 
     202 
     203If {{{per_dir_config}}} is omitted, it will return the server configuration. 
     204 
     205''Example: The {{{ParrotPostConfig}}} directive callback'' 
     206 
     207{{{ 
     208.sub cmd_parrotpostconfighandler 
     209    .param pmc mconfig 
     210    .param pmc args 
     211    .local pmc cfg, get_config 
     212 
     213    get_config = get_hll_global ['ModParrot'; 'Apache'; 'Module'], 'get_config' 
     214    cfg = get_config('modparrot_pir_module') 
     215    $S0 = args[0] 
     216    cfg['post_config_handler'] = $S0 
     217.end 
     218}}} 
     219 
    199220=== Accessing mod_parrot's Configuration === 
    200221