📄 tbping.pm
字号:
# Copyright 2001-2005 Six Apart.# SCRiPTMAFiA 2005 - THE DiRTY HANDS ON YOUR SCRiPTS## $Id: TBPing.pm 10197 2005-03-09 00:27:57Z ezra $package MT::TBPing;use strict;use MT::Object;@MT::TBPing::ISA = qw( MT::Object );__PACKAGE__->install_properties({ columns => [ 'id', 'blog_id', 'tb_id', 'title', 'excerpt', 'source_url', 'ip', 'blog_name', ], indexes => { created_on => 1, blog_id => 1, tb_id => 1, ip => 1, }, audit => 1, datasource => 'tbping', primary_key => 'id',});1;__END__=head1 NAMEMT::TBPing - Movable Type TrackBack Ping record=head1 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;=head1 DESCRIPTIONAn I<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).=head1 USAGEAs a subclass of I<MT::Object>, I<MT::TBPing> inherits all of thedata-management and -storage methods from that class; thus you should lookat the I<MT::Object> documentation for details about creating a new object,loading an existing object, saving an object, etc.=head1 DATA ACCESS METHODSThe I<MT::TBPing> object holds the following pieces of data. These fields canbe accessed and set using the standard data access methods described in theI<MT::Object> documentation.=over 4=item * idThe numeric ID of the ping.=item * blog_idThe numeric ID of the blog in which the ping is found.=item * tb_idThe numeric ID of the TrackBack record (I<MT::Trackback> object) to whichthe ping was sent.=item * titleThe title of the ping item.=item * ipThe IP address of the server that sent the ping.=item * excerptThe excerpt of the ping item.=item * source_urlThe URL of the item pointed to by the ping.=item * blog_nameThe name of the blog on which the original item was posted.=item * created_onThe timestamp denoting when the ping record was created, in the formatC<YYYYMMDDHHMMSS>. Note that the timestamp has already been adjusted for theselected timezone.=item * modified_onThe timestamp denoting when the ping record was last modified, in theformat C<YYYYMMDDHHMMSS>. Note that the timestamp has already been adjustedfor the selected timezone.=back=head1 DATA LOOKUPIn addition to numeric ID lookup, you can look up or sort records by anycombination of the following fields. See the I<load> documentation inI<MT::Object> for more information.=over 4=item * created_on=item * tb_id=item * blog_id=item * ip=back=head1 AUTHOR & COPYRIGHTSPlease see the I<MT> manpage for author, copyright, and license information.=cut
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -