Class::ObjectTemplate 0.7
Sponsored Links
Class::ObjectTemplate 0.7 Ranking & Summary
File size:
0.006 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
8505
Date added:
2006-10-05
Publisher:
Jason E. Stewart
Publisher URL:
http://search.cpan.org/~j
Class::ObjectTemplate 0.7 description
Class::ObjectTemplate is a Perl extension for an optimized template builder base class.
SYNOPSIS
package Foo;
use Class::ObjectTemplate;
require Exporter;
@ISA = qw(Class::ObjectTemplate Exporter);
attributes(one, two, three);
# initialize will be called by new()
sub initialize {
my $self = shift;
$self->three(1) unless defined $self->three();
}
use Foo;
$foo = Foo->new();
# store 27 in the one attribute
$foo->one(27);
# check the value in the two attribute
die "should be undefined" if defined $foo->two();
# set using the utility method
$foo->set_attribute(one,27);
# check using the utility method
$two = $foo->get_attribute(two);
# set more than one attribute using the named parameter style
$foo->set_attributes(one=>27, two=>42);
# or using array references
$foo->set_attributes([one,two],[27,42]);
# get more than one attribute
@list = $foo->get_attributes(one, two);
# get a list of all attributes known by an object
@attrs = $foo->get_attribute_names();
# check that initialize() is called properly
die "initialize didnt set three()" unless $foo->three();
Class::ObjectTemplate is a utility class to assist in the building of other Object Oriented Perl classes.
It was described in detail in the OReilly book, "Advanced Perl Programming" by Sriram Srinivasam.
SYNOPSIS
package Foo;
use Class::ObjectTemplate;
require Exporter;
@ISA = qw(Class::ObjectTemplate Exporter);
attributes(one, two, three);
# initialize will be called by new()
sub initialize {
my $self = shift;
$self->three(1) unless defined $self->three();
}
use Foo;
$foo = Foo->new();
# store 27 in the one attribute
$foo->one(27);
# check the value in the two attribute
die "should be undefined" if defined $foo->two();
# set using the utility method
$foo->set_attribute(one,27);
# check using the utility method
$two = $foo->get_attribute(two);
# set more than one attribute using the named parameter style
$foo->set_attributes(one=>27, two=>42);
# or using array references
$foo->set_attributes([one,two],[27,42]);
# get more than one attribute
@list = $foo->get_attributes(one, two);
# get a list of all attributes known by an object
@attrs = $foo->get_attribute_names();
# check that initialize() is called properly
die "initialize didnt set three()" unless $foo->three();
Class::ObjectTemplate is a utility class to assist in the building of other Object Oriented Perl classes.
It was described in detail in the OReilly book, "Advanced Perl Programming" by Sriram Srinivasam.
Class::ObjectTemplate 0.7 Screenshot
Sponsored Links
Class::ObjectTemplate 0.7 Keywords
ObjectTemplate
ObjectTemplate 0.7
ClassObjectTemplate
for an
one
attribute
Perl
three
attributes
using
Class::ObjectTemplate 0.7
Libraries
Programming
Bookmark Class::ObjectTemplate 0.7
Class::ObjectTemplate 0.7 Copyright
WareSeeker periodically updates pricing and software information of Class::ObjectTemplate 0.7 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Class::ObjectTemplate 0.7 Edition. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Class::ObjectTemplate 0.7 Related Software
Rose::Class::MakeMethods::Set is a Perl module to create class methods to manage sets.
Class::StrongSingleton is a stronger and more secure Singleton base class.
Class::HPLOO is an easier way to declare classes on Perl, based in the popular class {...} style and ePod.
Class::DBI::AutoIncrement is a Perl module to emulate auto-incrementing columns on Class::DBI subclasses.
Class::DBI::Query is a Perl module with deprecated SQL manager for Class::DBI.
Class::ArrayObjects is a Perl utility class for array based objects.
Class::Meta is a Perl class automation, introspection, and data validation.
Class::DBI::ConceptSearch is a Perl module to retrieve Class::DBI aggregates from high-level conceptual searches.
TagCloud Maker Class is a class that takes a single dimensional array of terms and outputs a piece of HTML with each term.
My Software
You have not saved any software. Click "Save" next to each software to save it to your software basket
Related Information
Sponsored Links
TOP POPULAR DOWNLOAD