PHP Class FeedWordPress, feedwordpress

ファイルを表示 Open project: radgeek/feedwordpress Class Usage Examples

Public Properties

Property Type Description
$feeds
$feedurls
$httpauth
$strip_attrs
$update_hooked * FeedWordPress::has_secret ()
$uri_attrs

Public Methods

Method Description
__construct ( ) FeedWordPress::__construct (): Construct FeedWordPress singleton object and retrieves a list of feeds for later reference.
admin_api ( ) * FeedWordPress::admin_init()
admin_footer ( ) * FeedWordPress::allow_html_mail ()
admin_init ( ) * FeedWordPress::stale()
affirmative ( $f, $setting ) * FeedWordPress::negative ()
all_admin_notices ( ) * FeedWordPress::admin_api ()
allow_html_mail ( ) * FeedWordPress::email_diagnostic_log ()
auto_update ( ) * FeedWordPress::update_requested_url()
automatic_update_hook ( $params = [] )
cache_duration ( $params = [] ) * FeedWordPress::clear_cache ()
cache_lifetime ( $duration )
clear_cache ( ) * FeedWordPress::fetch ()
clear_cache_magic_url ( ) * FeedWordPress::user_can_richedit ()
clear_cache_requested ( ) * FeedWordPress::clear_cache_magic_url()
crash_ts ( $default = NULL ) * FeedWordPress::update ()
create_guid_index ( ) * FeedWordPress::has_guid_index ()
critical_bug ( $varname, $var, $line, $file = NULL ) # Internal debugging functions
dashboard ( ) * FeedWordPress::dashboard_setup ()
dashboard_setup ( ) * FeedWordPress::row_actions ()
diagnostic ( $level, $out, $persist = NULL, $since = NULL, $mostRecent = NULL ) * FeedWordPress::diagnostic_on ()
diagnostic_on ( $level ) * FeedWordPress::val ()
email_diagnostic_log ( $params = [] ) * FeedWordPress::ready_to_email_diagnostics ()
email_diagnostics_override ( ) * FeedWordPress::diagnostic ()
feedwordpress_cleanup ( )
fetch ( $url, $params = [] )
fetch_timeout ( )
find_link ( $uri, $field = 'link_rss' ) * FeedWordPress::auto_update ()
force_update_all ( ) * FeedWordPress::last_update_all ()
fwp_feedcontents ( ) * FeedWordPress::fwp_feeds ()
fwp_feeds ( ) * FeedWordPress::wp_loaded ()
fwp_xpathtest ( ) * FeedWordPress::fwp_feedcontents ()
has_emailed_diagnostics ( $dlog ) * FeedWordPress::email_diagnostics_override ()
has_guid_index ( ) * FeedWordPress::upgrade_database()
has_secret ( ) * FeedWordPress::secret_key ()
init ( ) * FeedWordPress::feedwordpress_cleanup ()
is_null_email ( $email ) * FeedWordPress::null_email_set ()
last_update_all ( ) * FeedWordPress::automatic_update_hook ()
link_category_id ( ) * FeedWordPress::syndicated_links()
log_prefix ( $date = false ) * FeedWordPress::admin_footer ()
menu_cap ( $sub = false ) * FeedWordPress::log_prefix ()
munge_permalinks ( ) : boolean FeedWordPress::munge_permalinks: check whether or not FeedWordPress should rewrite permalinks for syndicated items to reflect their original location.
needs_upgrade ( ) # Upgrades and maintenance.
negative ( $f, $setting ) # Utility functions for handling text settings
noncritical_bug ( $varname, $var, $line, $file = NULL ) * FeedWordPress::critical_bug ()
null_email_set ( ) function FeedWordPress::on_unfamiliar()
on_unfamiliar ( $what = 'author' ) * FeedWordPress::syndicated_status()
param ( $key, $type = 'REQUEST', $default = NULL ) here for backward compatibility.
path ( $filename = '' ) * FeedWordPress::menu_cap ()
post ( $key, $default = NULL ) * FeedWordPress::param ()
process_retirements ( $delta ) * FeedWordPress::all_admin_notices ()
ready_to_email_diagnostics ( $dlog ) * FeedWordPress::has_emailed_diagnostics ()
redirect_retired ( ) * FeedWordPress::fwp_xpathtest ()
remove_guid_index ( ) * FeedWordPress::create_guid_index ()
row_actions ( $actions, $post ) * FeedWordPress::redirect_retired ()
secret_key ( ) * FeedWordPress::crash_ts ()
stale ( ) * FeedWordPress::force_update_all ()
subscribed ( mixed $id ) : boolean FeedWordPress::subscribed (): Check whether a feed is currently in the subscription list for FeedWordPress.
subscription ( mixed $which ) : mixed FeedWordPress::subscription (): Get the SyndicatedLink object for a given URL or numeric ID, if we have either an active subscription to it; or a de-activated subscription.
syndicate_link ( string $name, string $uri, string $rss ) : mixed FeedWordPress:syndicate_link(): add or update a feed subscription
syndicated_links ( $args = [] ) * FeedWordPress::munge_permalinks()
syndicated_status ( $what, $default ) * function FeedWordPress::syndicate_link()
update ( $uri = null, $crash_ts = null ) #
update_magic_url ( ) * FeedWordPress::clear_cache_requested()
update_requested ( ) * FeedWordPress::update_magic_url ()
update_requested_url ( ) * FeedWordPress::update_requested()
upgrade_database ( $from = NULL ) * FeedWordPress::needs_upgrade ()
use_aggregator_source_data ( ) * FeedWordPress::is_null_email ()
user_can_richedit ( $rich_edit ) * FeedWordPress::dashboard ()
val ( $v, $no_newlines = false ) * FeedWordPress::noncritical_bug ()
wp_loaded ( ) FeedWordPress::wp_loaded (): Once all plugin and theme modules have been loaded and initialized (by actions on the init hook, etc.), check the HTTP request to see if we need to perform any special FeedWordPress-related actions.

Method Details

__construct() public method

FeedWordPress::__construct (): Construct FeedWordPress singleton object and retrieves a list of feeds for later reference.
public __construct ( )

admin_api() public method

* FeedWordPress::admin_init()
public admin_api ( )

admin_init() static public method

* FeedWordPress::stale()
static public admin_init ( )

affirmative() static public method

* FeedWordPress::negative ()
static public affirmative ( $f, $setting )

all_admin_notices() public method

* FeedWordPress::admin_api ()
public all_admin_notices ( )

allow_html_mail() static public method

* FeedWordPress::email_diagnostic_log ()
static public allow_html_mail ( )

auto_update() public method

* FeedWordPress::update_requested_url()
public auto_update ( )

automatic_update_hook() public method

public automatic_update_hook ( $params = [] )

cache_duration() public static method

* FeedWordPress::clear_cache ()
public static cache_duration ( $params = [] )

cache_lifetime() public static method

public static cache_lifetime ( $duration )

clear_cache() public method

* FeedWordPress::fetch ()
public clear_cache ( )

clear_cache_magic_url() public method

* FeedWordPress::user_can_richedit ()

clear_cache_requested() public method

* FeedWordPress::clear_cache_magic_url()

crash_ts() public method

* FeedWordPress::update ()
public crash_ts ( $default = NULL )

create_guid_index() public static method

* FeedWordPress::has_guid_index ()
public static create_guid_index ( )

critical_bug() static public method

# Internal debugging functions
static public critical_bug ( $varname, $var, $line, $file = NULL )

dashboard() public method

* FeedWordPress::dashboard_setup ()
public dashboard ( )

dashboard_setup() public method

* FeedWordPress::row_actions ()
public dashboard_setup ( )

diagnostic() static public method

* FeedWordPress::diagnostic_on ()
static public diagnostic ( $level, $out, $persist = NULL, $since = NULL, $mostRecent = NULL )

diagnostic_on() static public method

* FeedWordPress::val ()
static public diagnostic_on ( $level )

email_diagnostic_log() public method

* FeedWordPress::ready_to_email_diagnostics ()
public email_diagnostic_log ( $params = [] )

email_diagnostics_override() public method

* FeedWordPress::diagnostic ()

feedwordpress_cleanup() public method

fetch() static public method

static public fetch ( $url, $params = [] )

fetch_timeout() static public method

static public fetch_timeout ( )

force_update_all() public method

* FeedWordPress::last_update_all ()
public force_update_all ( )

fwp_feedcontents() public method

* FeedWordPress::fwp_feeds ()
public fwp_feedcontents ( )

fwp_feeds() public method

* FeedWordPress::wp_loaded ()
public fwp_feeds ( )

fwp_xpathtest() public method

* FeedWordPress::fwp_feedcontents ()
public fwp_xpathtest ( )

has_emailed_diagnostics() public method

* FeedWordPress::email_diagnostics_override ()
public has_emailed_diagnostics ( $dlog )

has_guid_index() public static method

* FeedWordPress::upgrade_database()
public static has_guid_index ( )

has_secret() public method

* FeedWordPress::secret_key ()
public has_secret ( )

init() public method

* FeedWordPress::feedwordpress_cleanup ()
public init ( )

is_null_email() public static method

* FeedWordPress::null_email_set ()
public static is_null_email ( $email )

last_update_all() public method

* FeedWordPress::automatic_update_hook ()
public last_update_all ( )

log_prefix() static public method

* FeedWordPress::admin_footer ()
static public log_prefix ( $date = false )

menu_cap() static public method

* FeedWordPress::log_prefix ()
static public menu_cap ( $sub = false )

needs_upgrade() static public method

..
static public needs_upgrade ( )

negative() static public method

# Utility functions for handling text settings
static public negative ( $f, $setting )

noncritical_bug() static public method

* FeedWordPress::critical_bug ()
static public noncritical_bug ( $varname, $var, $line, $file = NULL )

null_email_set() public static method

function FeedWordPress::on_unfamiliar()
public static null_email_set ( )

on_unfamiliar() public static method

* FeedWordPress::syndicated_status()
public static on_unfamiliar ( $what = 'author' )

param() static public method

here for backward compatibility.
static public param ( $key, $type = 'REQUEST', $default = NULL )

path() static public method

* FeedWordPress::menu_cap ()
static public path ( $filename = '' )

post() static public method

* FeedWordPress::param ()
static public post ( $key, $default = NULL )

process_retirements() public method

* FeedWordPress::all_admin_notices ()
public process_retirements ( $delta )

ready_to_email_diagnostics() public method

* FeedWordPress::has_emailed_diagnostics ()
public ready_to_email_diagnostics ( $dlog )

redirect_retired() public method

* FeedWordPress::fwp_xpathtest ()
public redirect_retired ( )

remove_guid_index() public static method

* FeedWordPress::create_guid_index ()
public static remove_guid_index ( )

row_actions() public method

* FeedWordPress::redirect_retired ()
public row_actions ( $actions, $post )

secret_key() public method

* FeedWordPress::crash_ts ()
public secret_key ( )

stale() public method

* FeedWordPress::force_update_all ()
public stale ( )

subscribed() public method

FeedWordPress::subscribed (): Check whether a feed is currently in the subscription list for FeedWordPress.
public subscribed ( mixed $id ) : boolean
$id mixed Numeric ID of a WordPress link object or URL of a feed
return boolean TRUE if currently subscribed; FALSE otherwise.

subscription() public method

FeedWordPress::subscription (): Get the SyndicatedLink object for a given URL or numeric ID, if we have either an active subscription to it; or a de-activated subscription.
public subscription ( mixed $which ) : mixed
$which mixed Numeric ID for a WordPress link object or string URL for a feed
return mixed SyndicatedLink object if subscription is found; NULL if not

syndicated_status() static public method

* function FeedWordPress::syndicate_link()
static public syndicated_status ( $what, $default )

update() public method

#
public update ( $uri = null, $crash_ts = null )

update_magic_url() public method

* FeedWordPress::clear_cache_requested()
public update_magic_url ( )

update_requested() public static method

* FeedWordPress::update_magic_url ()
public static update_requested ( )

update_requested_url() public method

* FeedWordPress::update_requested()

upgrade_database() static public method

* FeedWordPress::needs_upgrade ()
static public upgrade_database ( $from = NULL )

use_aggregator_source_data() public static method

* FeedWordPress::is_null_email ()
public static use_aggregator_source_data ( )

user_can_richedit() public method

* FeedWordPress::dashboard ()
public user_can_richedit ( $rich_edit )

val() static public method

* FeedWordPress::noncritical_bug ()
static public val ( $v, $no_newlines = false )

wp_loaded() public method

FeedWordPress::wp_loaded (): Once all plugin and theme modules have been loaded and initialized (by actions on the init hook, etc.), check the HTTP request to see if we need to perform any special FeedWordPress-related actions.
Since: 2016.0614
public wp_loaded ( )

Property Details

$feeds public_oe property

public $feeds

$feedurls public_oe property

public $feedurls

$httpauth public_oe property

public $httpauth

$strip_attrs public_oe property

public $strip_attrs

$update_hooked public_oe property

* FeedWordPress::has_secret ()
public $update_hooked

$uri_attrs public_oe property

public $uri_attrs