Inheritance diagram for Pingback:
Collaboration diagram for Pingback:Public Member Functions | |
| action_plugin_activation ($file) | |
| action_plugin_deactivation ($file) | |
| action_post_insert_after ($post) | |
| action_post_update_after ($post) | |
| action_add_template_vars () | |
| xmlrpc_pingback__ping ($params) | |
| send_pingback ($source_uri, $target_uri, $post=NULL) | |
| pingback_all_links ($content, $source_uri, $post=NULL, $force=false) | |
| filter_admin_option_items ($items) | |
| theme_pingback_count ($theme, $post, $zero= '', $one= '', $many= '') | |
Definition at line 9 of file pingback.plugin.php.
| Pingback::action_add_template_vars | ( | ) |
Add the Pingback header on single post/page requests Not to the entire site. Clever.
Definition at line 69 of file pingback.plugin.php.
| Pingback::action_plugin_activation | ( | $ | file | ) |
Register the Pingback event type with the event log
Definition at line 15 of file pingback.plugin.php.
| Pingback::action_plugin_deactivation | ( | $ | file | ) |
Unregister the Pingback event type on deactivation
Definition at line 26 of file pingback.plugin.php.
| Pingback::action_post_insert_after | ( | $ | post | ) |
Pingback links from the post content when a post is inserted into the database.
| post | The post from which to send pingbacks |
Definition at line 37 of file pingback.plugin.php.
| Pingback::action_post_update_after | ( | $ | post | ) |
Pingback mentioned links when a post is updated.
| Post | $post The post is updated We invoke this function regardless of what might have been updated in the post because:
|
Definition at line 56 of file pingback.plugin.php.
| Pingback::filter_admin_option_items | ( | $ | items | ) |
Add the pingback options to the options page
| array | $items The array of option on the options page |
Definition at line 349 of file pingback.plugin.php.
| Pingback::pingback_all_links | ( | $ | content, | |
| $ | source_uri, | |||
| $ | post = NULL, |
|||
| $ | force = false | |||
| ) |
Scan all links in the content and send them a Pingback.
| string | $content The post content to search | |
| string | $source_uri The source of the content | |
| Post | $post The post object of the source of the ping | |
| boolean | $force If true, force the system to ping all links even if that had been pinged before |
Definition at line 295 of file pingback.plugin.php.
Referenced by action_post_insert_after(), and action_post_update_after().
| Pingback::send_pingback | ( | $ | source_uri, | |
| $ | target_uri, | |||
| $ | post = NULL | |||
| ) |
Send a single Pingback
| string | $source_uri The URI source of the ping (here) | |
| string | $target_uri The URI destination of the ping (there, the site linked to in the content) | |
| Post | $post The post object that is initiating the ping, used to track the pings that were sent |
Definition at line 228 of file pingback.plugin.php.
Referenced by pingback_all_links().
| Pingback::theme_pingback_count | ( | $ | theme, | |
| $ | post, | |||
| $ | zero = '', |
|||
| $ | one = '', |
|||
| $ | many = '' | |||
| ) |
Returns a full qualified URL of the specified post based on the comments count.
Passed strings are localized prior to parsing therefore to localize "%d Comments" in french, it would be "%d Commentaires".
Since we use sprintf() in the final concatenation, you must format passed strings accordingly.
| Theme | $theme The current theme object | |
| Post | $post Post object used to build the pingback link | |
| string | $zero String to return when there are no pingbacks | |
| string | $one String to return when there is one pingback | |
| string | $many String to return when there are more than one pingback |
Definition at line 374 of file pingback.plugin.php.
| Pingback::xmlrpc_pingback__ping | ( | $ | params | ) |
Receive a Pingback via XMLRPC
| array | $params An array of XMLRPC parameters from the remote call |
Sanitize Data
Definition at line 85 of file pingback.plugin.php.
1.7.1