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

Source for file BitBook.php

Documentation is available at BitBook.php

  1. <?php
  2. /**
  3.  * BitBook class
  4.  *
  5.  * @author   spider <spider@steelsun.com>
  6.  * @version  $Revision: 1.14 $
  7.  * @package  wiki
  8.  */
  9. // +----------------------------------------------------------------------+
  10. // | Copyright (c) 2004, bitweaver.org
  11. // +----------------------------------------------------------------------+
  12. // | All Rights Reserved. See below for details and a complete list of authors.
  13. // | Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details
  14. // |
  15. // | For comments, please use phpdocu.sourceforge.net documentation standards!!!
  16. // | -> see http://phpdocu.sourceforge.net/
  17. // +----------------------------------------------------------------------+
  18. // | Authors: spider <spider@steelsun.com>
  19. // +----------------------------------------------------------------------+
  20. //
  21. // $Id: BitBook.php,v 1.14 2010/04/17 22:46:11 wjames5 Exp $
  22.  
  23.  
  24. /**
  25.  * required setup
  26.  */
  27. require_onceWIKI_PKG_PATH.'BitPage.php' );
  28. require_onceLIBERTY_PKG_PATH.'LibertyStructure.php' );
  29.  
  30. define('BITBOOK_CONTENT_TYPE_GUID''bitbook' );
  31.  
  32. /**
  33.  * BitBook class
  34.  *
  35.  * @abstract
  36.  * @author   spider <spider@steelsun.com>
  37.  * @version  $Revision: 1.14 $
  38.  * @package  wiki
  39.  */
  40. class BitBook extends BitPage {
  41.     var $mPageId;
  42.     var $mPageName;
  43.     function BitBook$pPageId=NULL$pContentId=NULL {
  44.         BitPage::BitPage$pPageId$pContentId );
  45.         $this->registerContentTypeBITBOOK_CONTENT_TYPE_GUIDarray(
  46.             'content_type_guid' => BITBOOK_CONTENT_TYPE_GUID,
  47.             'content_name' => 'Wiki Book',
  48.             'handler_class' => 'BitBook',
  49.             'handler_package' => 'wiki',
  50.             'handler_file' => 'BitBook.php',
  51.             'maintainer_url' => 'http://www.bitweaver.org'
  52.         ) );
  53.         $this->mContentTypeGuid = BITBOOK_CONTENT_TYPE_GUID;
  54.  
  55.         // Permission setup
  56.         $this->mCreateContentPerm  = 'p_wiki_create_book';
  57.         $this->mUpdateContentPerm  = 'p_wiki_update_book';
  58.         $this->mAdminContentPerm = 'p_wiki_admin_book';
  59.     }
  60.  
  61.     function getList&$pListHash {
  62.         $struct new LibertyStructure();
  63.         $pListHash['content_type_guid'$this->mContentTypeGuid;
  64.         return $struct->getList$pListHash );
  65.     }
  66.  
  67.     function getStats({
  68.         return FALSE;
  69.     }
  70. }
  71. ?>

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