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

Source for file pnuser.php

Documentation is available at pnuser.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: pnuser.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 AvantGo
  11.  */
  12.  
  13. /**
  14.  * the main user function
  15.  * This function is the default function, and is called whenever the module is
  16.  * initiated without defining arguments.  As such it can be used for a number
  17.  * of things, but most commonly it either just shows the module menu and
  18.  * returns or calls whatever the module designer feels should be the default
  19.  * function (often this is the view() function)
  20.  * @author Mark West
  21.  * @link http://www.markwest.me.uk
  22.  * @param 'startnum' the starting article numbner
  23.  * @return string HTML string
  24.  */
  25. function AvantGo_user_main()
  26. {
  27.     // Security check
  28.     if (!SecurityUtil::checkPermission('AvantGo::''::'ACCESS_OVERVIEW)) {
  29.         return LogUtil::registerPermissionError();
  30.     }
  31.  
  32.     $startnum FormUtil::getPassedValue('startnum'isset($args['startnum']$args['startnum'null'GET');
  33.  
  34.     // Get news items from the news API
  35.     $items pnModAPIFunc('News''user''getall',
  36.                           array('startnum' => $startnum,
  37.                                 'numitems' => pnModGetVar('AvantGo''itemsperpage')));
  38.     if ($items == false{
  39.     }
  40.  
  41.     // Create output object
  42.     $pnRender pnRender::getInstance('AvantGo');
  43.  
  44.     $pnRender->assign('storyitems'$items);
  45.  
  46.     echo $pnRender->fetch('avantgo_user_main.htm');
  47.     return true;
  48. }

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