\KnowledgeBaseArticle
- Author: Damo
Synopsis
class KnowledgeBaseArticle
extends KnowledgeBasePage
{
- // members
- private static string $singular_name = 'KB Article';
- private static array $db = ;
- private static array $has_many = ;
- public static boolean $rating_enabled = true;
- // Inherited members from KnowledgeBasePage
- public static string $default_article_order;
- public static string $default_category_order;
- // methods
- public string getCategoryText()
- public boolean getRatingEnabled()
- public integer getRatingCount()
- public integer getRating()
- public void getCMSFields()
- // 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
- $db
- $has_many
- $singular_name
public
- $default_article_order
- $default_category_order
- $rating_enabled
Methods
public
- getCMSFields()
- getCategoryText() — Determines the visual descriptor of all categories this article lies within
- getRating() — Determines the average of previous ratings
- getRatingCount() — Determines the number of previous ratings
- getRatingEnabled() — Determines if the current article can be rated
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()