PHP 클래스 SyndicatedLink, feedwordpress

파일 보기 프로젝트 열기: radgeek/feedwordpress 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$id
$link
$magpie
$postmeta * SyndicatedLink::authentication_method ()
$settings
$simplepie

공개 메소드들

메소드 설명
__construct ( $link )
authentication_method ( ) * SyndicatedLink::password ()
automatic_ttl ( ) * SyndicatedLink::ttl()
category_ids ( $post, array $cats, string $unfamiliar_category = 'create', array | null $taxonomies = NULL, $params = [] ) : array category_ids: look up (and create) category ids from a list of categories
deactivate ( ) * SyndicatedLink::set_uri ()
delete ( ) SyndicatedLink::delete() deletes a subscription from the WordPress links table. Any posts that were syndicated through that subscription will still be present in the wp_posts table; but postmeta fields that refer to the syndication feed's numeric id (which will no longer be valid) will be deleted. For most purposes, the posts remaining will be treated as if they were locally authored posts rather than syndicated posts.
fetch ( ) * SyndicatedLink::stale ()
flatten_array ( array $arr, string $prefix = 'feed/', string $separator = '/' ) : array SyndicatedLink::flatten_array (): flatten an array. Useful for hierarchical and namespaced elements.
found ( ) * SyndicatedLink::__construct ()
guid ( ) * SyndicatedLink::name ()
hardcode ( $what ) * SyndicatedLink::flatten_array ()
homepage ( $fromFeed = true ) * SyndicatedLink::property_cascade ()
id ( ) * SyndicatedLink::found ()
is_non_incremental ( ) * SyndicatedLink::update_setting ()
links ( $params = [] )
live_posts ( ) * SyndicatedLink::fetch ()
map_name_to_new_user ( $name, $newuser_name ) * SyndicatedLink::nuke ()
merge_settings ( $data, $prefix, $separator = '/' ) * SyndicatedLink::setting ()
name ( $fromFeed = true ) * SyndicatedLink::homepage ()
nuke ( ) SyndicatedLink::nuke() deletes a subscription AND all of the posts syndicated through that subscription.
password ( ) * SyndicatedLink::username ()
poll ( $crash_ts = NULL ) * SyndicatedLink::live_posts ()
postmeta ( $params = [] )
process_retirements ( $delta ) * SyndicatedLink::poll()
property_cascade ( $fromFeed, $link_field, $setting, $method ) * SyndicatedLink::postmeta ()
save_settings ( $reload = false ) * SyndicatedLink::settings_to_notes ()
set_uri ( string $url ) : boolean Updates the URL for the feed syndicated by this link.
setting ( string $name, mixed $fallback_global = NULL, mixed $fallback_value = NULL, $default = 'default' ) : boolean Retrieves the value of a setting, allowing for a global setting to be used as a fallback, or a constant value, or both.
stale ( )
syndicated_status ( $what, $default, $fallback = true ) * SyndicatedLink::hardcode ()
taxonomies ( ) * SyndicatedLink:syndicated_status ()
ttl ( $return_element = false )
update_setting ( $name, $value, $default = 'default' ) * SyndicatedLink::merge_settings ()
uri ( $params = [] ) * SyndicatedLink::is_non_incremental ()
username ( ) * SyndicatedLink::uri ()

보호된 메소드들

메소드 설명
get_settings_from_notes ( ) * SyndicatedLink::imploded_settings ()
imploded_settings ( ) * SyndicatedLink::map_name_to_new_user ()
settings_to_notes ( ) * SyndicatedLink::get_settings_from_notes ()

메소드 상세

__construct() 공개 메소드

public __construct ( $link )

authentication_method() 공개 메소드

* SyndicatedLink::password ()

automatic_ttl() 공개 메소드

* SyndicatedLink::ttl()
public automatic_ttl ( )

category_ids() 공개 메소드

category_ids: look up (and create) category ids from a list of categories
public category_ids ( $post, array $cats, string $unfamiliar_category = 'create', array | null $taxonomies = NULL, $params = [] ) : array
$cats array
$unfamiliar_category string
$taxonomies array | null
리턴 array

deactivate() 공개 메소드

* SyndicatedLink::set_uri ()
public deactivate ( )

delete() 공개 메소드

SyndicatedLink::delete() deletes a subscription from the WordPress links table. Any posts that were syndicated through that subscription will still be present in the wp_posts table; but postmeta fields that refer to the syndication feed's numeric id (which will no longer be valid) will be deleted. For most purposes, the posts remaining will be treated as if they were locally authored posts rather than syndicated posts.
public delete ( )

fetch() 공개 메소드

* SyndicatedLink::stale ()
public fetch ( )

flatten_array() 공개 메소드

Given an array which may contain array or object elements in it, return a "flattened" array: a one-dimensional array of scalars containing each of the scalar elements contained within the array structure. Thus, for example, if $a['b']['c']['d'] == 'e', then the returned array for FeedWordPress::flatten_array($a) will contain a key $a['feed/b/c/d'] with value 'e'.
public flatten_array ( array $arr, string $prefix = 'feed/', string $separator = '/' ) : array
$arr array
$prefix string
$separator string
리턴 array

found() 공개 메소드

* SyndicatedLink::__construct ()
public found ( )

get_settings_from_notes() 보호된 메소드

* SyndicatedLink::imploded_settings ()
protected get_settings_from_notes ( )

guid() 공개 메소드

* SyndicatedLink::name ()
public guid ( )

hardcode() 공개 메소드

* SyndicatedLink::flatten_array ()
public hardcode ( $what )

homepage() 공개 메소드

* SyndicatedLink::property_cascade ()
public homepage ( $fromFeed = true )

id() 공개 메소드

* SyndicatedLink::found ()
public id ( )

imploded_settings() 보호된 메소드

* SyndicatedLink::map_name_to_new_user ()
protected imploded_settings ( )

is_non_incremental() 공개 메소드

* SyndicatedLink::update_setting ()
public is_non_incremental ( )

live_posts() 공개 메소드

* SyndicatedLink::fetch ()
public live_posts ( )

map_name_to_new_user() 공개 메소드

* SyndicatedLink::nuke ()
public map_name_to_new_user ( $name, $newuser_name )

merge_settings() 공개 메소드

* SyndicatedLink::setting ()
public merge_settings ( $data, $prefix, $separator = '/' )

name() 공개 메소드

* SyndicatedLink::homepage ()
public name ( $fromFeed = true )

nuke() 공개 메소드

SyndicatedLink::nuke() deletes a subscription AND all of the posts syndicated through that subscription.
public nuke ( )

password() 공개 메소드

* SyndicatedLink::username ()
public password ( )

poll() 공개 메소드

* SyndicatedLink::live_posts ()
public poll ( $crash_ts = NULL )

postmeta() 공개 메소드

public postmeta ( $params = [] )

process_retirements() 공개 메소드

* SyndicatedLink::poll()
public process_retirements ( $delta )

property_cascade() 공개 메소드

* SyndicatedLink::postmeta ()
public property_cascade ( $fromFeed, $link_field, $setting, $method )

save_settings() 공개 메소드

* SyndicatedLink::settings_to_notes ()
public save_settings ( $reload = false )

set_uri() 공개 메소드

Updates the URL for the feed syndicated by this link.
public set_uri ( string $url ) : boolean
$url string The new feed URL to use for this source.
리턴 boolean TRUE on success, FALSE on failure.

setting() 공개 메소드

Retrieves the value of a setting, allowing for a global setting to be used as a fallback, or a constant value, or both.
public setting ( string $name, mixed $fallback_global = NULL, mixed $fallback_value = NULL, $default = 'default' ) : boolean
$name string The link setting key
$fallback_global mixed If the link setting is nonexistent or marked as a use-default value, fall back to the value of this global setting.
$fallback_value mixed If the link setting and the global setting are nonexistent or marked as a use-default value, fall back to this constant value.
리턴 boolean TRUE on success, FALSE on failure.

settings_to_notes() 보호된 메소드

* SyndicatedLink::get_settings_from_notes ()
protected settings_to_notes ( )

stale() 공개 메소드

public stale ( )

syndicated_status() 공개 메소드

* SyndicatedLink::hardcode ()
public syndicated_status ( $what, $default, $fallback = true )

taxonomies() 공개 메소드

* SyndicatedLink:syndicated_status ()
public taxonomies ( )

ttl() 공개 메소드

public ttl ( $return_element = false )

update_setting() 공개 메소드

* SyndicatedLink::merge_settings ()
public update_setting ( $name, $value, $default = 'default' )

uri() 공개 메소드

* SyndicatedLink::is_non_incremental ()
public uri ( $params = [] )

username() 공개 메소드

* SyndicatedLink::uri ()
public username ( )

프로퍼티 상세

$id 공개적으로 프로퍼티

public $id

$magpie 공개적으로 프로퍼티

public $magpie

$postmeta 공개적으로 프로퍼티

* SyndicatedLink::authentication_method ()
public $postmeta

$settings 공개적으로 프로퍼티

public $settings

$simplepie 공개적으로 프로퍼티

public $simplepie