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

Source for file mod_wiki_last_comments.php

Documentation is available at mod_wiki_last_comments.php

  1. <?php
  2. /**
  3.  * $Header: /cvsroot/bitweaver/_bit_wiki/modules/mod_wiki_last_comments.php,v 1.4 2007/01/17 20:16:24 spiderr Exp $
  4.  *
  5.  * Copyright (c) 2004 bitweaver.org
  6.  * Copyright (c) 2003 tikwiki.org
  7.  * Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
  8.  * All Rights Reserved. See copyright.txt for details and a complete list of authors.
  9.  * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
  10.  *
  11.  * $Id: mod_wiki_last_comments.php,v 1.4 2007/01/17 20:16:24 spiderr Exp $
  12.  * @package wiki
  13.  * @subpackage modules
  14.  */
  15.  
  16. /**
  17.  * Show last comments on wiki pages
  18.  */
  19. global $gQueryUserId;
  20. /**
  21.  * required setup
  22.  */
  23. if$gBitUser->hasPermission'p_wiki_view_page' ) ) {
  24.     require_onceLIBERTY_PKG_PATH.'LibertyComment.php' );
  25.     $cmt new LibertyComment();
  26.     $lastComments $cmt->getListarray'max_records' => $module_rows'user_id' => $gQueryUserId'content_type_guid' => BITPAGE_CONTENT_TYPE_GUID ) );
  27.     $gBitSmarty->assign('lastComments'$lastComments);
  28.     $gBitSmarty->assign('moretooltips'isset($module_params["moretooltips"]$module_params["moretooltips"'n');
  29. }
  30. ?>

Documentation generated on Thu, 15 Feb 2007 20:45:50 +0000 by phpDocumentor 1.3.0