TrackbackClass for TrackBack entries. This attempts to comply with theTrackBack specification at http://www.sixapart.com- /pronet- /docs- /trackback_spec This is used to recieve and send TrackBack pings as well as to access locally stored ping data. Inherits: LnBlogObject Events
Summary
isTrackback
Determines if an object or file is a saved trackback. Parameters
ReturnsTrue if the data file exists and is under an entry trackback directory, false otherwise getPostData
Pulls the trackback data out of the POST and into the object. As per the TrackBack specification located at http://www.sixapart.com- /pronet- /docs- /trackback_spec, the interface for POSTs is as follows. title - The title of the pinging post. excerpt - An excerpt from the text of the pinging post. blog_name - The name of the blog to which the pinging post belongs. url - The URL of the pinging post. This is the only required field. send
Send a TrackBack ping without using a form. Parameters
ReturnsAn associative array with ‘error’, ‘message’, and ‘response’ elements. The error element contains the trackback return code from the remote server. The message element contains the error message if there was one. Note that a return code of 0 indicates success, while other values indicate an error. The response element contains the full XML response, for debugging purposes. |
Gets a copy of the parent object.
function getParent()
Determines if an object or file is a saved trackback.
function isTrackback( $path = false )
Get the URI for various functions
function uri( $type )
Pulls the trackback data out of the POST and into the object.
function getPostData()
Send a TrackBack ping without using a form.
function send( $url )
Receive a TrackBack ping and store the data in a file.
function receive()
Determines if there is a trackback ping in the POST data.
function incomingPing()
Reads trackback ping data from a file.
function readFileData( $path = false )
Write trackback data to a file.
function writeFileData( $path )
Put the saved data into a template for display.
function get()
Permanently delete a trackback.
function delete()
Gives the permalink to the trackback entry.
function permalink()
Gets an anchor to the entry on the page.
function getAnchor()
Converts an anchor from getAnchor into a filename.
function getFilename( $anchor )