MT::TBPing - Movable Type TrackBack Ping record
use MT::TBPing;
my $ping = MT::TBPing->new;
$ping->blog_id($tb->blog_id);
$ping->tb_id($tb->id);
$ping->title('Foo');
$ping->excerpt('This is from a TrackBack ping.');
$ping->source_url('http://www.foo.com/bar');
$ping->save
or die $ping->errstr;
An MT::TBPing object represents a TrackBack ping in the Movable Type system. It contains all of the metadata about the ping (title, excerpt, URL, etc).
As a subclass of MT::Object, MT::TBPing inherits all of the data-management and -storage methods from that class; thus you should look at the MT::Object documentation for details about creating a new object, loading an existing object, saving an object, etc.
The MT::TBPing object holds the following pieces of data. These fields can be accessed and set using the standard data access methods described in the MT::Object documentation.
The numeric ID of the ping.
The numeric ID of the blog in which the ping is found.
The numeric ID of the TrackBack record (MT::Trackback object) to which the ping was sent.
The title of the ping item.
The IP address of the server that sent the ping.
The excerpt of the ping item.
The URL of the item pointed to by the ping.
The name of the blog on which the original item was posted.
The timestamp denoting when the ping record was created,
in the format YYYYMMDDHHMMSS.
Note that the timestamp has already been adjusted for the selected timezone.
The timestamp denoting when the ping record was last modified,
in the format YYYYMMDDHHMMSS.
Note that the timestamp has already been adjusted for the selected timezone.
In addition to numeric ID lookup, you can look up or sort records by any combination of the following fields. See the load documentation in MT::Object for more information.
Please see the MT manpage for author, copyright, and license information.