# Copyright 2001-2003 Six Apart. This code cannot be redistributed without # permission from www.movabletype.org. # # $Id: Notification.pm,v 1.11 2003/02/12 00:15:03 btrott Exp $ 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 NAME MT::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 DESCRIPTION An I object represents an email address in the notification list for your blog in the Movable Type system. It contains the email address, as well as some metadata about the record. =head1 USAGE As a subclass of I, I inherits all of the data-management and -storage methods from that class; thus you should look at the I documentation for details about creating a new object, loading an existing object, saving an object, etc. =head1 DATA ACCESS METHODS The I object holds the following pieces of data. These fields can be accessed and set using the standard data access methods described in the I documentation. =over 4 =item * id The numeric ID of the notification record. =item * blog_id The numeric ID of the blog to which this notification record belongs. =item * email The email address of the user in the notification record. =item * name The name of the user in the notification record. =item * url The homepage URL of the user in the notification record. =item * created_on The timestamp denoting when the notification record was created, in the format C. Note that the timestamp has already been adjusted for the selected timezone. =item * modified_on The timestamp denoting when the notification record was last modified, in the format C. Note that the timestamp has already been adjusted for the selected timezone. =back =head1 DATA LOOKUP In addition to numeric ID lookup, you can look up or sort records by any combination of the following fields. See the I documentation in I for more information. =over 4 =item * blog_id =back =head1 AUTHOR & COPYRIGHTS Please see the I manpage for author, copyright, and license information. =cut