CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#6893] Add module API function to get $param_map

avatar
Created By: Georg Busch (nan)
Date Submitted: 2011-09-23 07:46

Assigned To:
Resolution: Won't Fix
State: Closed
Summary:
Add module API function to get $param_map
Detailed Description:
The $param_map is a private array of the CMSModule class that only can be *set*
by the API function SetParameterType(). But there is no function to *get* all
these parameters. This could be useful to get a list of all allowed parameters
of a module.

E.g. if module 'A' executes or redirects to a function of module 'B' you
sometimes pass a mix of parameters of both modules. So you will get this
annoying error message "Warning parameter X not know by module B". To avoid this
it would be a nice feature if you can clear all params of module 'A' before
passing them to module 'B'.

kind regards.

History

Comments
avatar
Date: 2011-12-18 13:02
Posted By: Robert Campbell (calguy1000)

This is invalid... proper mechanism for this would be to use something like the
passthru mechanism that the Search module has.

i.e: passthru_OtherModule_paramname 
your code could then parse out these params and pass them to the other module...
thereby you don't need to 'get' the param map, or have a risk of conflicts.  
i.e:  with a 'summarytemplate' or 'detailtemplate' or 'detailpage' param that
are common to numerous modules.
      
Updates

Updated: 2012-04-06 04:37
state: Open => Closed

Updated: 2011-12-18 13:02
resolution_id: => 8