Pingback
Trackback
Reply
Pingback

Represents a Pingback ping.  Pingbacks are similar in purpose to Trackbacks, but are fully automated (as per the spec, no user interaction required) and implemented using XML-RPC.  The Pingback specification is available at http://​hixie​.ch​/specs​/pingback​/pingback

Events
OnInit

Fired when the object is about to initialize.

InitComplete

Fired after the object has been initialized.

OnInsert

Fired before a pingback is stored.

InsertComplete

Fired after a pingback is saved.

OnDelete

Fired when a pingback is about to be deleted.

DeleteComplete

Fired right after a pingback has been deleted.

OnOutput

Fired when starting to process for display.

OutputComplete

Fired when output is sent to the client.

Functions
globalID
public function globalID()

Get the global identifier for this trackback.

insert
public function insert(
$ent
)

Stores the pingback data in a file.  It is assumed that the source, target, title, and excerpt properties are set externally.

Parameters
ent

The entry into which to insert this pingback.

isPingback
public function isPingback(
$pathfalse
)

Determines if an object or file is a saved pingback.

Parameters
path

The optional path to the pingback data file.  If not given, then the object's file property is used.

Returns

True if the data file exists and is under an entry pingback directory, false otherwise

getAnchor
public function getAnchor()

Gets an anchor to the entry on the page.

Returns

The anchor to use for this pingback.

getFilename
public function getFilename(
$anchor
)

Converts an anchor from getAnchor into a filename.

Parameters
anchor

The anchor to turn into a filename.

Returns

The name of the pingback file.

get
public function get()

Put the saved data into a template for display.

Returns

The data to be sent to the client.

isLocal
public function isLocal()

Determines whether or not the pingback is to an entry on the current blog and/or server.

Returns

True if the source and target are on the same host, false otherwise.