\KnowledgeBase
Root page for knowledge base section
- Author: Damo
Synopsis
class KnowledgeBase
extends KnowledgeBasePage
{
- // members
- public static boolean $create_knowledgebase_pages = true;
- private static array $allowed_children = ;
- private static string $singular_name = 'KB Section';
- private static array $has_many = ;
- // Inherited members from KnowledgeBasePage
- public static string $default_article_order;
- public static string $default_category_order;
- // methods
- public void requireDefaultRecords()
- // Inherited methods from KnowledgeBasePage
- public void canCreate()
- public null getKnowledgeBaseID()
- public void getKnowledgeBase()
- public DataObjectSet ChildCategories()
- public void AllCategories()
- public DataObjectSet SubCategories()
- public DataObjectSet ChildArticles()
- public DataObjectSet SubArticles()
- public string getChildTreeFilter()
- protected void updateChildTreePositions()
- protected void updateTreePosition()
- public void onBeforeWrite()
- public void onAfterWrite()
- public void onAfterPublish()
Hierarchy
Extends
Members
private
- $allowed_children
- $has_many
- $singular_name
public
- $create_knowledgebase_pages
- $default_article_order
- $default_category_order
Methods
public
- requireDefaultRecords() — Add default records to database.
Inherited from KnowledgeBasePage
protected
- updateChildTreePositions() — Recursively updates the tree position for child pages after a save
- updateTreePosition() — Updates the TreePosition field for this node
public
- AllCategories()
- ChildArticles() — Retrieves all articles that are a direct descendant of this
- ChildCategories() — Retrieves all categories that are a direct descendant
- SubArticles() — Retrieves all descendant articles
- SubCategories() — Retrieves all descendant categories
- canCreate()
- getChildTreeFilter() — Determines the treeposition that children of this node should use for quick filtering by ancestry
- getKnowledgeBase() — Determines the current knowledgebase for this page
- getKnowledgeBaseID() — Extracts ID of the current knowledge base
- onAfterPublish()
- onAfterWrite()
- onBeforeWrite()