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

Source for file ephem.php

Documentation is available at ephem.php

  1. <?php
  2. /**
  3.  * Zikula Application Framework
  4.  *
  5.  * @copyright (c) 2002, Zikula Development Team
  6.  * @link http://www.zikula.org
  7.  * @version $Id: ephem.php 24342 2008-06-06 12:03:14Z markwest $
  8.  * @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
  9.  * @package Zikula_Value_Addons
  10.  * @subpackage Ephemerids
  11.  */
  12.  
  13. /**
  14.  * initialise block
  15.  */
  16. {
  17.     // Security
  18.     pnSecAddSchema('Ephemeridsblock::''Block title::');
  19. }
  20.  
  21. /**
  22.  * get information on block
  23.  */
  24. {
  25.     // Values
  26.     return array('text_type' => 'Ephemerids',
  27.                  'module' => 'Ephemerids',
  28.                  'text_type_long' => 'Ephemerids',
  29.                  'allow_multiple' => true,
  30.                  'form_content' => false,
  31.                  'form_refresh' => false,
  32.                  'show_preview' => true);
  33. }
  34.  
  35. function Ephemerids_ephemblock_display($blockinfo)
  36. {
  37.     // Security check
  38.     if (!SecurityUtil::checkPermission('Ephemeridsblock::'"$blockinfo[title]::"ACCESS_READ)) {
  39.         return;
  40.     }
  41.  
  42.     if (!pnModAvailable('Ephemerids')) {
  43.         return;
  44.     }
  45.  
  46.     // Create output object
  47.     $pnRender pnRender::getInstance('Ephemerids');
  48.  
  49.     $pnRender->assign('items'pnModAPIFunc('Ephemerids''user''gettoday'));
  50.  
  51.     // Populate block info and pass to theme
  52.     $blockinfo['content'$pnRender->fetch('ephemerids_block_ephem.htm');
  53.  
  54.     return pnBlockThemeBlock($blockinfo);
  55. }

Documentation generated on Fri, 18 Jul 2008 21:44:56 +0200 by phpDocumentor 1.4.1