Christopher H. Laco > Mango-0.01000_13 > Mango::Tag

Download:
Mango-0.01000_13.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Mango::Tag - Module representing a [folksonomy] tag

SYNOPSIS ^

    my $tags = $product->tags;
    
    while (my $tag = %tags->next) {
        print $tag->name;
    };

DESCRIPTION ^

Mango::Tag represents a tag assigned to products.

METHODS ^

count

Returns the number of instances this tag.

This is not currently implemented and always returns 0.

created

Returns the date and time in UTC the tag was created as a DateTime object.

    print $user->created;

destroy

This is not currently implemented.

id

Returns the id of the current tag.

    print $tag->id;

name

Arguments: $name

Gets/sets the name of the current tag.

    print $tag->name;

updated

Returns the date and time in UTC the tag was last updated as a DateTime object.

    print $user->updated;

SEE ALSO ^

Mango::Object, Mango::Product

AUTHOR ^

    Christopher H. Laco
    CPAN ID: CLACO
    claco@chrislaco.com
    http://today.icantfocus.com/blog/
syntax highlighting: