<<

NAME

MT::Notification - Movable Type notification list record

SYNOPSIS

    use MT::Notification;
    my $note = MT::Notification->new;
    $note->blog_id($blog->id);
    $note->email($email_address);
    $note->save
        or die $note->errstr;

DESCRIPTION

An MT::Notification 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.

USAGE

As a subclass of MT::Object, MT::Notification 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::Notification 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 notification record.

  • blog_id

    The numeric ID of the blog to which this notification record belongs.

  • email

    The email address of the user in the notification record.

  • name

    The name of the user in the notification record.

  • url

    The homepage URL of the user in the notification record.

  • created_on

    The timestamp denoting when the notification 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 notification 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.

  • blog_id

AUTHOR & COPYRIGHTS

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

<<