NAME

MT::Category - Movable Type category record


SYNOPSIS

    use MT::Category;
    my $cat = MT::Category->new;
    $cat->blog_id($blog->id);
    $cat->label('My Category');
    $cat->save
        or die $cat->errstr;


DESCRIPTION

An MT::Category object represents a category in the Movable Type system. It is essentially a wrapper around the category label; by wrapping the label in an object with a numeric ID, we can use the ID as a ``foreign key'' when mapping entries into categories. Thus, if the category label changes, the mappings don't break. This object does not contain any information about the category-entry mappings--for those, look at the MT::Placement object.


USAGE

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


NOTES


AUTHOR & COPYRIGHTS

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