?? notification.pm
字號:
# Copyright 2001-2005 Six Apart.# SCRiPTMAFiA 2005 - THE DiRTY HANDS ON YOUR SCRiPTS## $Id: Notification.pm 10197 2005-03-09 00:27:57Z ezra $package MT::Notification;use strict;use MT::Object;@MT::Notification::ISA = qw( MT::Object );__PACKAGE__->install_properties({ columns => [ 'id', 'blog_id', 'name', 'email', 'url', ], indexes => { blog_id => 1, }, datasource => 'notification', audit => 1, primary_key => 'id',});1;__END__=head1 NAMEMT::Notification - Movable Type notification list record=head1 SYNOPSIS use MT::Notification; my $note = MT::Notification->new; $note->blog_id($blog->id); $note->email($email_address); $note->save or die $note->errstr;=head1 DESCRIPTIONAn I<MT::Notification> object represents an email address in the notificationlist for your blog in the Movable Type system. It contains the email address,as well as some metadata about the record.=head1 USAGEAs a subclass of I<MT::Object>, I<MT::Notification> 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::Notification> object holds the following pieces of data. Thesefields can be accessed and set using the standard data access methodsdescribed in the I<MT::Object> documentation.=over 4=item * idThe numeric ID of the notification record.=item * blog_idThe numeric ID of the blog to which this notification record belongs.=item * emailThe email address of the user in the notification record.=item * nameThe name of the user in the notification record.=item * urlThe homepage URL of the user in the notification record.=item * created_onThe timestamp denoting when the notification 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 notification 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 * blog_id=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 + -