NAME

MT::Comment - Movable Type comment record


SYNOPSIS

    use MT::Comment;
    my $comment = MT::Comment->new;
    $comment->blog_id($entry->blog_id);
    $comment->entry_id($entry->id);
    $comment->author('Foo');
    $comment->text('This is a comment.');
    $comment->save
        or die $comment->errstr;


DESCRIPTION

An MT::Comment object represents a comment in the Movable Type system. It contains all of the metadata about the comment (author name, email address, homepage URL, IP address, etc.), as well as the actual body of the comment.


USAGE

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


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.


AUTHOR & COPYRIGHTS

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