Six Apart Code

<<

NAME

MT::TBPing - Movable Type TrackBack Ping record

SYNOPSIS

    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;

DESCRIPTION

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).

USAGE

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.

DATA ACCESS METHODS

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.

  • id
  • The numeric ID of the ping.

  • blog_id
  • The numeric ID of the blog in which the ping is found.

  • tb_id
  • The numeric ID of the TrackBack record (MT::Trackback object) to which the ping was sent.

  • title
  • The title of the ping item.

  • ip
  • The IP address of the server that sent the ping.

  • excerpt
  • The excerpt of the ping item.

  • source_url
  • The URL of the item pointed to by the ping.

  • blog_name
  • The name of the blog on which the original item was posted.

  • created_on
  • 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.

  • modified_on
  • 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.

DATA LOOKUP

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.

  • created_on
  • tb_id
  • blog_id
  • ip

AUTHOR & COPYRIGHTS

Please see the MT manpage for author, copyright, and license information.

<<

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.