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