PHP Класс Forum, Nameless

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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