| Apache-AxKit-Language-XSP-ObjectTaglib documentation | Contained in the Apache-AxKit-Language-XSP-ObjectTaglib distribution. |
AxKit::XSP::ObjectTaglib::Demo::Presentation - A mock course presentation object
use AxKit::XSP::ObjectTaglib::Demo::Presentation;
use strict;
my $presentation = AxKit::XSP::ObjectTaglib::Demo::Presentation->new();
print $presentation->calculateSize;
This module represents a generic Presentation object returned by
AxKit::XSP::ObjectTaglib::Demo::Course->presentations for use within
the AxKit::XSP::ObjectTaglib::Demo Taglib.
Returns a new AxKit::XSP::ObjectTaglib::Demo::Presentation object. You can
also pass in an optional hashref to be blessed into the new object.
my $presentation = AxKit::XSP::ObjectTaglib::Demo::Presentation->new({
size => 100
});
Returns the calculated size of the given
AxKit::XSP::ObjectTaglib::Demo::Presentation object.
print $presentation->calculatedSize;
Christopher H. Laco
CPAN ID: CLACO
claco@chrislaco.com
http://today.icantfocus.com/blog/
| Apache-AxKit-Language-XSP-ObjectTaglib documentation | Contained in the Apache-AxKit-Language-XSP-ObjectTaglib distribution. |
# $Id: /local/CPAN/Apache-AxKit-Language-XSP-ObjectTaglib/lib/AxKit/XSP/ObjectTaglib/Demo/Presentation.pm 1508 2005-03-10T02:56:40.581331Z claco $ package AxKit::XSP::ObjectTaglib::Demo::Presentation; use strict; use warnings; sub new { my $class = shift; my $attr = shift || {}; my $self = bless $attr, $class; return $self; }; sub calculateSize { return (shift->{size} . 'Kb'); }; 1; __END__