MT::Comment - Movable Type comment record
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;
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.
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.
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.
YYYYMMDDHHMMSS. Note that the timestamp has already been adjusted for the
selected timezone.
YYYYMMDDHHMMSS. Note that the timestamp has already been adjusted
for the selected timezone.
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.
Please see the MT manpage for author, copyright, and license information.