PHP 클래스 Falcon, Falcon

"팔콘 데이터저장소 엔진"은 MySQL을 기반으로 하는 NoSQL 엔진 입니다. 모든 입력, 출력이 JSON 문서로 되어 있어 웹 애플리케이션, 스마트폰 애플케이션 개발에 용의 합니다. 이 엔진은 소규모 애플리케이션에 적합 합니다.
파일 보기 프로젝트 열기: rmccue/Falcon 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$connectors
$handler

공개 메소드들

메소드 설명
add_schedule ( $schedules ) Add a more frequent cron schedule
bootstrap ( )
check_inbox ( )
convert_html_to_text ( string $html ) : string Convert the post content to text
get_connectors ( )
get_from_address ( ) : string Get the From address
get_handler_class ( string | null $type = null ) Get the registered handler class for a certain type
get_handlers ( ) : array Get all available handlers
get_hash ( integer $post_id, WP_User $user, $site_id ) : string Get the verification hash for a post and user
get_option ( $key, $default = false )
get_reply_address ( integer $post_id, WP_User $user, $site_id = null ) : string Get the reply-to address for a post and user
is_enabled_for_site ( integer $site_id = null ) : boolean Is Falcon enabled for this site?
is_network_mode ( ) : boolean Is Falcon in network mode?
notify_invalid ( WP_User $user, $title ) Notify the user of an invalid reply
post_callback ( )
should_send_async ( ) : boolean Should notifications be sent asynchronously?

보호된 메소드들

메소드 설명
get_available_connectors ( ) : array Get available connectors
get_handler ( ) : bbSubscriptions_Handler Get a mail handler based on the config

메소드 상세

add_schedule() 공개 정적인 메소드

We need to check the inbox much more regularly than hourly, so here we do it every minute instead.
public static add_schedule ( $schedules )

bootstrap() 공개 정적인 메소드

public static bootstrap ( )

check_inbox() 공개 정적인 메소드

public static check_inbox ( )

convert_html_to_text() 공개 정적인 메소드

Convert the post content to text
public static convert_html_to_text ( string $html ) : string
$html string HTML to convert
리턴 string Text version of the content

get_available_connectors() 보호된 정적인 메소드

Get available connectors
protected static get_available_connectors ( ) : array
리턴 array

get_connectors() 공개 정적인 메소드

public static get_connectors ( )

get_from_address() 공개 정적인 메소드

Defaults to the same default email as wp_mail(), including filters
public static get_from_address ( ) : string
리턴 string Full email address

get_handler() 보호된 정적인 메소드

Get a mail handler based on the config
protected static get_handler ( ) : bbSubscriptions_Handler
리턴 bbSubscriptions_Handler

get_handler_class() 공개 정적인 메소드

Get the registered handler class for a certain type
public static get_handler_class ( string | null $type = null )
$type string | null Type to get, defaults to the option

get_handlers() 공개 정적인 메소드

Get all available handlers
public static get_handlers ( ) : array
리턴 array Associative array of identifier => handler class

get_hash() 공개 정적인 메소드

Uses a HMAC rather than a straight hash to avoid vulnerabilities.
또한 보기: http://benlog.com/articles/2008/06/19/dont-hash-secrets/
또한 보기: http://blog.jcoglan.com/2012/06/09/why-you-should-never-use-hash-functions-for-message-authentication/
public static get_hash ( integer $post_id, WP_User $user, $site_id ) : string
$post_id integer Post ID
$user WP_User User object
리턴 string Verification hash (10 characters long)

get_option() 공개 정적인 메소드

public static get_option ( $key, $default = false )

get_reply_address() 공개 정적인 메소드

Get the reply-to address for a post and user
public static get_reply_address ( integer $post_id, WP_User $user, $site_id = null ) : string
$post_id integer Post ID
$user WP_User User object
리턴 string Full email address

is_enabled_for_site() 공개 정적인 메소드

When Falcon is used in network mode, it can be toggled per-site. Avoid using this to determine whether to hook in, instead use it inside your hook callbacks to determine whether to run.
public static is_enabled_for_site ( integer $site_id = null ) : boolean
$site_id integer Site to check. Default is current site.
리턴 boolean

is_network_mode() 공개 정적인 메소드

Network mode is used when Falcon is network-activated, and moves some of the settings to the network admin for super admins instead. It also adds UI to allow enabling per-site.
public static is_network_mode ( ) : boolean
리턴 boolean

notify_invalid() 공개 정적인 메소드

Notify the user of an invalid reply
public static notify_invalid ( WP_User $user, $title )
$user WP_User User that supposedly sent the email

post_callback() 공개 정적인 메소드

public static post_callback ( )

should_send_async() 공개 정적인 메소드

Should notifications be sent asynchronously?
public static should_send_async ( ) : boolean
리턴 boolean

프로퍼티 상세

$connectors 보호되어 있는 정적으로 프로퍼티

protected static $connectors

$handler 보호되어 있는 정적으로 프로퍼티

protected static $handler