Smarty
[ class tree: Smarty ] [ index: Smarty ] [ all elements ]

Source for file function.nexus.php

Documentation is available at function.nexus.php

  1. <?php
  2. /**
  3.  * Smarty plugin
  4.  * @package Smarty
  5.  * @subpackage plugins
  6.  */
  7.  
  8. /**
  9.  * Smarty {nexus} function plugin
  10.  *
  11.  * Type:    function
  12.  * Name:    nexus
  13.  * Input:    - id    (required) - id of the menu that should be displayed
  14.  */
  15. function smarty_function_nexus$params&$gBitSmarty {
  16.     extract($params);
  17.  
  18.     ifempty$id ) ) {
  19.         $gBitSmarty->trigger_error("assign: missing id");
  20.         return;
  21.     }
  22.  
  23.     require_onceNEXUS_PKG_PATH.'Nexus.php' );
  24.     $tmpNexus new Nexus$id );
  25.     $nexusMenu $tmpNexus->mInfo;
  26.  
  27.     $gBitSmarty->assign'nexusMenu'$nexusMenu );
  28.     $gBitSmarty->assign'nexusId'$id );
  29.     $gBitSmarty->display('bitpackage:nexus/nexus_module.tpl');
  30. }
  31. ?>

Documentation generated on Wed, 29 Jul 2015 13:56:39 +0000 by phpDocumentor 1.5.0-lsces