PHP Класс PHPFusion\Forums\Moderator

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

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

Метод Описание
define_forum_mods ( $info ) Generate iMOD const
parse_forum_mods ( $forum_mods ) : string Parse Forum Group Moderators Links
setForumId ( $forum_id )
setPostId ( integer $post_id )
setThreadId ( $thread_id )
set_modActions ( )
verify_forum ( $forum_id )
verify_thread ( $thread_id ) * Authenticate thread exist

Защищенные методы

Метод Описание
mod_nonsticky_thread ( ) Moderator Action - Non Sticky Thread Modal pop up confirmation of thread being un-sticky
mod_sticky_thread ( ) Moderator Action - Sticky Thread Modal pop up confirmation of thread being sticky
mod_unlock_thread ( ) Moderator Action - Unlock Thread Modal pop up confirmation of thread being unlocked

Приватные методы

Метод Описание
mod_delete_posts ( ) Moderator Action - Remove only selected post in a thread Requires $_POST['delete_posts'] refer to - viewthread_options.php
mod_delete_thread ( ) Moderator Action - Delete Thread Modal pop up confirmation of thread being removed
mod_lock_thread ( ) Moderator Action - Lock Thread Modal pop up confirmation of thread being locked
mod_move_posts ( ) Moving Posts
mod_move_thread ( ) Moderator Action - Move Thread
mod_renew_thread ( ) Moderator Action - Renew Thread Modal pop up confirmation of thread being renewed
refresh_forum ( boolean $delete_thread = FALSE ) : integer Refresh db_forum forum's stats
remove_thread ( ) : array SQL action remove thread
unset_userpost ( ) : integer Unset User Post based on Thread id This function assumes as if user have never posted before

Описание методов

define_forum_mods() публичный статический Метод

Generate iMOD const
public static define_forum_mods ( $info )
$info

mod_nonsticky_thread() защищенный Метод

Moderator Action - Non Sticky Thread Modal pop up confirmation of thread being un-sticky
protected mod_nonsticky_thread ( )

mod_sticky_thread() защищенный Метод

Moderator Action - Sticky Thread Modal pop up confirmation of thread being sticky
protected mod_sticky_thread ( )

mod_unlock_thread() защищенный Метод

Moderator Action - Unlock Thread Modal pop up confirmation of thread being unlocked
protected mod_unlock_thread ( )

parse_forum_mods() публичный статический Метод

Parse Forum Group Moderators Links
public static parse_forum_mods ( $forum_mods ) : string
$forum_mods
Результат string

setForumId() публичный Метод

public setForumId ( $forum_id )

setPostId() публичный Метод

public setPostId ( integer $post_id )
$post_id integer

setThreadId() публичный Метод

public setThreadId ( $thread_id )

set_modActions() публичный Метод

public set_modActions ( )

verify_forum() статический публичный Метод

static public verify_forum ( $forum_id )

verify_thread() публичный статический Метод

* Authenticate thread exist
public static verify_thread ( $thread_id )