PHP Class Forum, Nameless

ファイルを表示 Open project: NamelessMC/Nameless Class Usage Examples

Public Methods

Method Description
__construct ( )
canPostReply ( $forum_id, $group_id = null ) Params: $forum_id (integer) - forum id to check, $group_id (integer) - group id of the user
canPostTopic ( $forum_id, $group_id = null ) Params: $forum_id (integer) - forum id to check, $group_id (integer) - group id of the user
forumExist ( $forum_id, $group_id = null ) Params: $forum_id (integer) - forum id to check, $group_id (integer) - group id of the user
getForumTitle ( $forum_id ) Params: $forum_id (integer) - forum id to check
getForumType ( $forum_id ) Params: $forum_id (integer) - forum id to check
getIndividualPost ( $post_id ) Params: $post_id (integer) - post id to check
getLatestDiscussions ( $group_id = null ) Params: $group_id (integer) - group id of the user
getLatestNews ( $number = 5 ) Params: $number (integer) - number to return (max recommended 10)
getPosts ( $tid = null ) Params: $tid (integer) - topic ID to retrieve post from
getReputation ( $post_id ) Params: $post_id (integer) - post id to check
listAllForums ( $group_id = null, $layout = null ) Params: $group_id (integer) - group id of the user
orderAllForums ( $group_id = null ) Params: $group_id (integer) - group id of the user
topicExist ( $topic_id, $group_id = null ) Params: $topic_id (integer) - topic id to check, $group_id (integer) - group id of the user
updateForumLatestPosts ( ) Updates the latest post column in all forums. Used when a reply/topic is deleted
updateTopicLatestPosts ( ) Updates the latest post column in all topics

Method Details

__construct() public method

public __construct ( )

canPostReply() public method

Params: $forum_id (integer) - forum id to check, $group_id (integer) - group id of the user
public canPostReply ( $forum_id, $group_id = null )

canPostTopic() public method

Params: $forum_id (integer) - forum id to check, $group_id (integer) - group id of the user
public canPostTopic ( $forum_id, $group_id = null )

forumExist() public method

Params: $forum_id (integer) - forum id to check, $group_id (integer) - group id of the user
public forumExist ( $forum_id, $group_id = null )

getForumTitle() public method

Params: $forum_id (integer) - forum id to check
public getForumTitle ( $forum_id )

getForumType() public method

Params: $forum_id (integer) - forum id to check
public getForumType ( $forum_id )

getIndividualPost() public method

Params: $post_id (integer) - post id to check
public getIndividualPost ( $post_id )

getLatestDiscussions() public method

Params: $group_id (integer) - group id of the user
public getLatestDiscussions ( $group_id = null )

getLatestNews() public method

Params: $number (integer) - number to return (max recommended 10)
public getLatestNews ( $number = 5 )

getPosts() public method

Params: $tid (integer) - topic ID to retrieve post from
public getPosts ( $tid = null )

getReputation() public method

Params: $post_id (integer) - post id to check
public getReputation ( $post_id )

listAllForums() public method

Params: $group_id (integer) - group id of the user
public listAllForums ( $group_id = null, $layout = null )

orderAllForums() public method

Params: $group_id (integer) - group id of the user
public orderAllForums ( $group_id = null )

topicExist() public method

Params: $topic_id (integer) - topic id to check, $group_id (integer) - group id of the user
public topicExist ( $topic_id, $group_id = null )

updateForumLatestPosts() public method

Updates the latest post column in all forums. Used when a reply/topic is deleted

updateTopicLatestPosts() public method

Updates the latest post column in all topics