Christopher H. Laco > Apache-AxKit-Language-XSP-ObjectTaglib-0.09000 > AxKit::XSP::ObjectTaglib::Demo::Course

Download:
Apache-AxKit-Language-XSP-ObjectTaglib-0.09000.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

AxKit::XSP::ObjectTaglib::Demo::Course - A mock course object

SYNOPSIS ^

    use AxKit::XSP::ObjectTaglib::Demo::Course;
    use strict;
    use warnings;

    my $course = AxKit::XSP::ObjectTaglib::Demo::Course->new();
    print $course->name;

DESCRIPTION ^

This module represents a generic Course object returned by AxKit::XSP::ObjectTaglib::Demo::Courses->load for use within the AxKit::XSP::ObjectTaglib::Demo Taglib.

METHODS ^

new( [\%attr] )

Returns a new AxKit::XSP::ObjectTaglib::Demo::Course object. You can also pass in an optional hashref to be blessed into the new object.

    my $course = AxKit::XSP::ObjectTaglib::Demo::Course->new({
        name => 'Course 100: Easy Course',
        code => 100
    });

name

Returns the name of the given AxKit::XSP::ObjectTaglib::Demo::Course object.

    print $course->name;

code

Returns the course code of the given AxKit::XSP::ObjectTaglib::Demo::Course object.

    print $course->code;

summary

Returns the summary description of the given AxKit::XSP::ObjectTaglib::Demo::Course object.

    print $course->summary;

description

Returns the description of the given AxKit::XSP::ObjectTaglib::Demo::Course object.

    print $course->description;

prerequisites

Returns an array of prerequisite objects of the given AxKit::XSP::ObjectTaglib::Demo::Course object.

    my @prerequisites = $course->prerequisites;
    for (@preequisites) {
        print $_->name;
        print $_->code;
    };

See AxKit::XSP::ObjectTaglib::Demo::Prerequisite for more information about the objects returned.

presentations

Returns an array of presentation objects of the given AxKit::XSP::ObjectTaglib::Demo::Course object.

    my @presentations = $course->presentations;
    for (@presentations) {
        print $_->name;
        print $_->calculatedSize;
    };

See AxKit::XSP::ObjectTaglib::Demo::Presentation for more information about the objects returned.

resources

Returns an array of resource objects of the given AxKit::XSP::ObjectTaglib::Demo::Course object.

    my @resources = $course->resources;
    for (@resources) {
        print $_->name;
    };

See AxKit::XSP::ObjectTaglib::Demo::Resource for more information about the objects returned.

SEE ALSO ^

AxKit::XSP::ObjectTaglib::Demo, Apache::AxKit::Language::XSP::ObjectTaglib, AxKit::XSP::ObjectTaglib::Demo::Courses

AUTHOR ^

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