ForumManager

Provides forum manager service.

Hierarchy

File

core/modules/forum/src/ForumManager.php, line 18

Namespace

Drupal\forum

Members

Name Modifiers Type Description
DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization.
DependencySerializationTrait::__sleep public function Aliased as: defaultSleep
DependencySerializationTrait::__wakeup public function Aliased as: defaultWakeup
ForumManager::$commentManager protected property The comment manager service.
ForumManager::$configFactory protected property Forum settings config object.
ForumManager::$connection protected property Database connection
ForumManager::$entityManager protected property Entity manager service
ForumManager::$forumChildren protected property Array of forum children keyed by parent forum (term) id.
ForumManager::$forumStatistics protected property Array of forum statistics keyed by forum (term) id.
ForumManager::$history protected property Array of history keyed by nid.
ForumManager::$index protected property Cached forum index.
ForumManager::$lastPostData protected property Array of last post information keyed by forum (term) id.
ForumManager::checkNodeType public function Checks whether a node can be used in a forum, based on its content type. Overrides ForumManagerInterface::checkNodeType
ForumManager::getChildren public function Utility method to fetch the child forums for a given forum. Overrides ForumManagerInterface::getChildren
ForumManager::getForumStatistics protected function Provides statistics for a forum.
ForumManager::getIndex public function Generates and returns the forum index. Overrides ForumManagerInterface::getIndex
ForumManager::getLastPost protected function Provides the last post information for the given forum tid.
ForumManager::getParents public function Fetches the parent forums for a given forum. Overrides ForumManagerInterface::getParents
ForumManager::getTopicOrder protected function Gets topic sorting information based on an integer code.
ForumManager::getTopics public function Gets list of forum topics. Overrides ForumManagerInterface::getTopics
ForumManager::lastVisit protected function Gets the last time the user viewed a node.
ForumManager::LEAST_POPULAR_FIRST constant Forum sort order, posts with the least comments first.
ForumManager::MOST_POPULAR_FIRST constant Forum sort order, posts with most comments first.
ForumManager::NEWEST_FIRST constant Forum sort order, newest first.
ForumManager::OLDEST_FIRST constant Forum sort order, oldest first.
ForumManager::resetCache public function Resets the ForumManager index and history. Overrides ForumManagerInterface::resetCache
ForumManager::unreadTopics public function Calculates the number of new posts in a forum that the user has not yet read. Overrides ForumManagerInterface::unreadTopics
ForumManager::__construct public function Constructs the forum manager service.
ForumManager::__sleep public function
ForumManager::__wakeup public function
StringTranslationTrait::$stringTranslation protected property The string translation service.
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use.
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.
doc_Drupal
2016-10-29 09:17:09
Comments
Leave a Comment

Please login to continue.