Utente: Password: Ricordami
Non sei ancora registrato? Puoi farlo adesso!. Come utente registrato avrai diversi vantaggi come la gestione dei temi grafici, la possibilità di inviare notizie e commenti.
  Stampa la pagina corrente   Mostra la posizione di questa pagina nella mappa
function.pnmodapifunc
cradle

 

 Autorender plugin to execute a module API function
 
  This function calls a calls a specific module API function. It returns whatever the return
  value of the resultant function is if it succeeds.
  Note that in contrast to the API function pnModAPIFunc you need not to load the
  module API with pnModAPILoad.
 
 
  Available parameters:

  1. - modname:  The well-known name of a module to execute a function from (required)
  2. - type:     The type of function to execute; currently one of 'user' or 'admin' (default is 'user')
  3. - func:     The name of the module function to execute (default is 'main')
  4. - assign:   The name of a variable to which the results are assigned
  5. - all remaining parameters are passed to the module API function


  
  Examples
    <% pnmodfunc modname="News"  type="user" func="getarticles" id="3" %>
 
    <% pnmodapifunc modname="foobar" type="user" func="getfoo" id="1" assign="myfoo" %>
    <% myfoo.title %>