PHP 클래스 Forum, Nameless

파일 보기 프로젝트 열기: NamelessMC/Nameless 1 사용 예제들

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

public __construct ( )

canPostReply() 공개 메소드

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

canPostTopic() 공개 메소드

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

forumExist() 공개 메소드

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

getForumTitle() 공개 메소드

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

getForumType() 공개 메소드

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

getIndividualPost() 공개 메소드

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

getLatestDiscussions() 공개 메소드

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

getLatestNews() 공개 메소드

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

getPosts() 공개 메소드

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

getReputation() 공개 메소드

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

listAllForums() 공개 메소드

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

orderAllForums() 공개 메소드

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

topicExist() 공개 메소드

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

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