Ejemplo n.º 1
0
 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' => 'http://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';
 }