Inherits DataItem.
Definition at line 248 of file forum.inc.
◆ countReplies()
ForumTopic::countReplies |
( |
| ) |
|
When counting forum message replies to a topic, exclude the forum message that has a parent id of 0, that is the topic message, the initial post to which others may reply.
Definition at line 298 of file forum.inc.
300 return Query::create(
ForumMessage,
"WHERE topic_id=:topic_id and parent_id > 0 and deleted=0")
301 ->bind(
":topic_id", $this->topic_id)
302 ->executeValue(
"COUNT(1)");
◆ FirstPost()
ForumTopic::FirstPost |
( |
| ) |
|
◆ Forum()
◆ getTitle()
◆ LastPost()
◆ Messages()
ForumTopic::Messages |
( |
|
$constraint = "" | ) |
|
◆ $fields
Initial value:= array("topic_id" => Number,
"message_id" => Number,
"forum_id" => Number,
"views" => Number,
"replies" => Number,
"date_created" => Date)
Definition at line 254 of file forum.inc.
◆ $primary_key
ForumTopic::$primary_key = "topic_id" |
◆ $relations
◆ $table
ForumTopic::$table = "forum_topic" |
The documentation for this class was generated from the following file:
- C:/code/cms.sonjara.com/cms/components/forum/datamodel/forum.inc