|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/fatshado/cgi-bin/MT/lib/MT/ |
Upload File : |
# Copyright 2001, 2002 Benjamin Trott. This code cannot be redistributed without
# permission from www.movabletype.org.
#
# $Id: Trackback.pm,v 1.4 2002/06/19 23:50:09 btrott Exp $
package MT::Trackback;
use strict;
use MT::Object;
@MT::Trackback::ISA = qw( MT::Object );
__PACKAGE__->install_properties({
columns => [
'id', 'blog_id', 'title', 'description', 'rss_file', 'url',
'entry_id', 'category_id', 'is_disabled', 'passphrase',
],
indexes => {
blog_id => 1,
entry_id => 1,
category_id => 1,
created_on => 1,
},
audit => 1,
datasource => 'trackback',
primary_key => 'id',
});
sub remove {
my $tb = shift;
require MT::TBPing;
my @pings = MT::TBPing->load({ tb_id => $tb->id });
for my $ping (@pings) {
$ping->remove;
}
$tb->SUPER::remove;
}
1;