PHP 클래스 Discourse

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
파일 보기 프로젝트 열기: discourse/wp-discourse 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$options Options and defaults
$version Version

보호된 프로퍼티들

프로퍼티 타입 설명
$response_validator

공개 메소드들

메소드 설명
__construct ( $response_validator ) Discourse constructor.
admin_styles ( )
avatar ( $template, $size )
comments_number ( $count )
comments_template ( $old )
convert_relative_img_src_to_absolute ( $url, $content )
discourse_comments_js ( )
get_allowed_post_types ( )
get_plugin_options ( )
homepage ( $url, $post )
init ( )
install ( )
is_valid_sync_post_type ( $postid = null )
publish_active ( )
publish_post_to_discourse ( $new_status, $old_status, $post )
save_postdata ( $postid )
set_login_url ( $login_url, $redirect ) the default WordPress login path.
sso_add_query_vars ( $vars )
sso_parse_request ( $wp ) SSO Request Processing from Adam Capirola : https://gist.github.com/adamcapriola/11300529
sync_comments ( $postid )
sync_to_discourse ( $postid, $title, $raw )
sync_to_discourse_work ( $postid, $title, $raw )
use_discourse_comments ( $postid )
xmlrpc_publish_post_to_discourse ( $postid ) When publishing by xmlrpc, ignore the publish_to_discourse option

메소드 상세

__construct() 공개 메소드

Takes a response_validator object as a parameter. The response_validator has a validate() method that validates the response from wp_remote_get and wp_remote_post.
public __construct ( $response_validator )
$response_validator

admin_styles() 공개 메소드

public admin_styles ( )

avatar() 공개 정적인 메소드

public static avatar ( $template, $size )

comments_number() 공개 메소드

public comments_number ( $count )

comments_template() 공개 메소드

public comments_template ( $old )

convert_relative_img_src_to_absolute() 정적인 공개 메소드

static public convert_relative_img_src_to_absolute ( $url, $content )

discourse_comments_js() 공개 메소드

get_allowed_post_types() 공개 메소드

get_plugin_options() 정적인 공개 메소드

static public get_plugin_options ( )

homepage() 공개 정적인 메소드

public static homepage ( $url, $post )

init() 공개 메소드

public init ( )

install() 정적인 공개 메소드

static public install ( )

is_valid_sync_post_type() 공개 메소드

public is_valid_sync_post_type ( $postid = null )

publish_active() 공개 메소드

public publish_active ( )

publish_post_to_discourse() 공개 메소드

public publish_post_to_discourse ( $new_status, $old_status, $post )

save_postdata() 공개 메소드

public save_postdata ( $postid )

set_login_url() 공개 메소드

the default WordPress login path.
public set_login_url ( $login_url, $redirect )

sso_add_query_vars() 공개 메소드

public sso_add_query_vars ( $vars )

sso_parse_request() 공개 메소드

SSO Request Processing from Adam Capirola : https://gist.github.com/adamcapriola/11300529
public sso_parse_request ( $wp )

sync_comments() 공개 메소드

public sync_comments ( $postid )

sync_to_discourse() 공개 메소드

public sync_to_discourse ( $postid, $title, $raw )

sync_to_discourse_work() 공개 메소드

public sync_to_discourse_work ( $postid, $title, $raw )

use_discourse_comments() 공개 메소드

public use_discourse_comments ( $postid )

xmlrpc_publish_post_to_discourse() 공개 메소드

When publishing by xmlrpc, ignore the publish_to_discourse option

프로퍼티 상세

$options 정적으로 공개적으로 프로퍼티

Options and defaults
static public $options

$response_validator 보호되어 있는 프로퍼티

protected $response_validator

$version 정적으로 공개적으로 프로퍼티

Version
static public $version