PHP 클래스 Message_Board

부터: 1.0.0
파일 보기 프로젝트 열기: justintadlock/message-board 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$db_version integer Current database version.
$deleted_post object | null Used for temporarily saving a deleted post object.
$dir_path string Directory path to the plugin folder.
$dir_uri string Directory URI to the plugin folder.
$forum_query object Forum query. Is assigned a WP_Query object. On forum archive/single views, this is the main $wp_query object.
$forum_types array Forum types (e.g., normal, category).
$reply_query object Reply query. Is assigned a WP_Query object. This is mainly useful on single topic views, where it is used to display the replies to the current topic.
$role_query object | null Role query. This holds the results of mb_get_dynamic_roles() and is used on the role archive page.
$roles array Forum roles (e.g., keymaster, moderator, participant, spectator, banned).
$search_query object Search query. Is assigned a WP_Query object. This is the $wp_query object when viewing a forum search results page.
$subforum_query object Sub-forum query. Is assigned a WP_Query object. This is only useful when getting the sub-forums of a particular forum.
$topic_query object Topic query. Is assigned a WP_Query object. On topic single/archive views, this is the main $wp_query object.
$topic_types array Topic types (e.g., normal, super, sticky).
$user_query object | null User query. This holds the results of get_users() and is particularly useful for the user archive page.
$version string Plugin version number.

공개 메소드들

메소드 설명
__call ( $method = '', $args = [] ) : void Magic method to prevent a fatal error when calling a method that doesn't exist.
__clone ( ) : void Magic method to keep the object from being cloned.
__toString ( ) : void Magic method to output a string if trying to use the object as a string.
__wakeup ( ) : void Magic method to keep the object from being unserialized.
activation ( ) : void Method that runs only when the plugin is activated.
enqueue_scripts ( ) : void Loads the front end scripts and styles. No styles are loaded if the theme supports the plugin.
get_instance ( ) : object Returns the instance.
i18n ( ) : void Loads the translation files.

비공개 메소드들

메소드 설명
__construct ( ) : void Constructor method.
includes ( ) : void Loads include and admin files for the plugin.
setup ( ) : void Initial plugin setup.
setup_actions ( ) : void Sets up initial actions.

메소드 상세

__call() 공개 메소드

Magic method to prevent a fatal error when calling a method that doesn't exist.
부터: 1.0.0
public __call ( $method = '', $args = [] ) : void
리턴 void

__clone() 공개 메소드

Magic method to keep the object from being cloned.
부터: 1.0.0
public __clone ( ) : void
리턴 void

__toString() 공개 메소드

Magic method to output a string if trying to use the object as a string.
부터: 1.0.0
public __toString ( ) : void
리턴 void

__wakeup() 공개 메소드

Magic method to keep the object from being unserialized.
부터: 1.0.0
public __wakeup ( ) : void
리턴 void

activation() 공개 메소드

Method that runs only when the plugin is activated.
부터: 1.0.0
public activation ( ) : void
리턴 void

enqueue_scripts() 공개 메소드

Loads the front end scripts and styles. No styles are loaded if the theme supports the plugin.
부터: 1.0.0
public enqueue_scripts ( ) : void
리턴 void

get_instance() 공개 정적인 메소드

Returns the instance.
부터: 1.0.0
public static get_instance ( ) : object
리턴 object

i18n() 공개 메소드

Loads the translation files.
부터: 1.0.0
public i18n ( ) : void
리턴 void

프로퍼티 상세

$db_version 공개적으로 프로퍼티

Current database version.
부터: 1.0.0
public int $db_version
리턴 integer

$deleted_post 공개적으로 프로퍼티

Used for temporarily saving a deleted post object.
부터: 1.0.0
public object|null $deleted_post
리턴 object | null

$dir_path 공개적으로 프로퍼티

Directory path to the plugin folder.
부터: 1.0.0
public string $dir_path
리턴 string

$dir_uri 공개적으로 프로퍼티

Directory URI to the plugin folder.
부터: 1.0.0
public string $dir_uri
리턴 string

$forum_query 공개적으로 프로퍼티

Forum query. Is assigned a WP_Query object. On forum archive/single views, this is the main $wp_query object.
부터: 1.0.0
public object $forum_query
리턴 object

$forum_types 공개적으로 프로퍼티

Forum types (e.g., normal, category).
부터: 1.0.0
public array $forum_types
리턴 array

$reply_query 공개적으로 프로퍼티

Reply query. Is assigned a WP_Query object. This is mainly useful on single topic views, where it is used to display the replies to the current topic.
부터: 1.0.0
public object $reply_query
리턴 object

$role_query 공개적으로 프로퍼티

Role query. This holds the results of mb_get_dynamic_roles() and is used on the role archive page.
부터: 1.0.0
public object|null $role_query
리턴 object | null

$roles 공개적으로 프로퍼티

Forum roles (e.g., keymaster, moderator, participant, spectator, banned).
부터: 1.0.0
public array $roles
리턴 array

$search_query 공개적으로 프로퍼티

Search query. Is assigned a WP_Query object. This is the $wp_query object when viewing a forum search results page.
부터: 1.0.0
public object $search_query
리턴 object

$subforum_query 공개적으로 프로퍼티

Sub-forum query. Is assigned a WP_Query object. This is only useful when getting the sub-forums of a particular forum.
부터: 1.0.0
public object $subforum_query
리턴 object

$topic_query 공개적으로 프로퍼티

Topic query. Is assigned a WP_Query object. On topic single/archive views, this is the main $wp_query object.
부터: 1.0.0
public object $topic_query
리턴 object

$topic_types 공개적으로 프로퍼티

Topic types (e.g., normal, super, sticky).
부터: 1.0.0
public array $topic_types
리턴 array

$user_query 공개적으로 프로퍼티

User query. This holds the results of get_users() and is particularly useful for the user archive page.
부터: 1.0.0
public object|null $user_query
리턴 object | null

$version 공개적으로 프로퍼티

Plugin version number.
부터: 1.0.0
public string $version
리턴 string