Object Class
Class::Meta is a Perl class automation, introspection, and data validation. SYNOPSIS Generate a class: package MyApp::Thingy; use strict; use Class::Meta; use Class::Meta::Types::String; use Class::Meta::Types::Numeric; BEGIN { # Create a Class::Meta object for this class. my $cm =...
Platforms: *nix
License: Freeware | Size: 61.44 KB | Download (90): Class::Meta Download |
Class::Meta::Type is a Perl module for data type validation and accessor building. SYNOPSIS package MyApp::TypeDef; use strict; use Class::Meta::Type; use IO::Socket; my $type = Class::Meta::Type->add( key => io_socket, desc => IO::Socket object, name => IO::Socket Object ); This...
Platforms: *nix
License: Freeware | Size: 61.44 KB | Download (93): Class::Meta::Type Download |
OPML Writer is a PHP4 class for writing OPML files with an object-oriented approach..
Platforms: *nix
License: Freeware | Size: 163.84 KB | Download (110): OPML Writer Download |
Class::DataStore is a Perl module for generic OO data storage/retrieval. SYNOPSIS my %values = ( one => 1, two => 2 ); my $store = Class::DataStore->new( %values ); # using get/set methods $store->set( three, 3 ); my $three = $store->get( three ); # using AUTOLOAD method $store->four(...
Platforms: *nix
License: Freeware | Size: 4.1 KB | Download (89): Class::DataStore Download |
dtRdr::Traits::Class is a Perl module with shared OO stuff. Methods to Break Things NOT_IMPLEMENTED Imported into base class. Gives a nicer message than the standard "Cant locate method...", indicating that you did not typo the method name, but instead forgot to override it. sub...
Platforms: *nix
License: Freeware | Size: 2.8 MB | Download (92): dtRdr::Traits::Class Download |
Class::Declare is a Perl module created to declare classes with public, private and protected attributes and methods. SYNOPSIS package My::Class; use strict; use warnings; use base qw( Class::Declare ); __PACKAGE__->declare( public => { public_attr => 42 } , private => { private_attr...
Platforms: *nix
License: Freeware | Size: 76.8 KB | Download (88): Class::Declare Download |
Class::Declare::Attributes is a Perl module with Class::Declare method types using Perl attributes. SYNOPSIS package My::Class; use 5.006; use strict; use warnings; use base qw( Class::Declare::Attributes ); # declare the class/instance attributes __PACKAGE__->declare( ... ); # #...
Platforms: *nix
License: Freeware | Size: 21.5 KB | Download (93): Class::Declare::Attributes Download |
Class::Agreement is a Perl module that add contracts to your Perl classes easily. SYNOPSIS package SomeClass; use Class::Agreement; # use base Class::Accessor or Class::MethodMaker, # or roll your own: sub new { ... } invariant { my ($self) = @_; $self->count > 0; }; precondition...
Platforms: *nix
License: Freeware | Size: 27.65 KB | Download (96): Class::Agreement Download |
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...
Platforms: *nix
License: Freeware | Size: 6.14 KB | Download (89): Class::ObjectTemplate Download |
Class::DBI::Template::Stash is a Perl module with Template::Stash subclass for Class::DBI::Template. SYNOPSIS package Music::DBI; use base Class::DBI; use Class::DBI::Template; There is nothing you need to do for this module, it is setup for you when you use Class::DBI::Template. It...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (97): Class::DBI::Template::Stash Download |
Object::InsideOut is a comprehensive inside-out object support module. SYNOPSIS package My::Class; { use Object::InsideOut; # Numeric field # With combined get+set accessor my @data :Field :Type(numeric) :Accessor(data); # Takes INPUT (or input, etc.) as a mandatory parameter to...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (89): Object::InsideOut Download |
Basset::Object::Persistent is a subclass of Basset::Object that allows objects to be easily stored into a relational database. Presently only supports MySQL, but that may change in the future. SYNOPSIS (no synopsis, this is an abstract super class that should never be instantiated directly,...
Platforms: *nix
License: Freeware | Size: 143.36 KB | Download (88): Basset::Object::Persistent Download |
Rose::DB::Object::Tutorial is a guided tour of the basics of Rose::DB::Object. INTRODUCTION This document provides a step-by-step introduction to the Rose::DB::Object module distribution. It demonstrates all of the important features using a semi-realistic example database. This tutorial does...
Platforms: *nix
License: Freeware | Size: 481.28 KB | Download (98): Rose::DB::Object::Tutorial Download |
Object::Relation::Meta::Attribute::Schema is a Perl module for Object::Relation database store builder. Synopsis # Assuming MyThingy was generated by Object::Relation::Meta and that were building # a data store schema. my $class = MyThingy->my_class; print "nAttributes:n"; for my $attr...
Platforms: *nix
License: Freeware | Size: 235.52 KB | Download (94): Object::Relation::Meta::Attribute::Schema Download |
Ace::Object is a Perl module to manipulate Ace Data Objects. SYNOPSIS # open database connection and get an object use Ace; $db = Ace->connect(-host => beta.crbm.cnrs-mop.fr, -port => 20000100); $sequence = $db->fetch(Sequence => D12345); # Inspect the object $r =...
Platforms: *nix
License: Freeware | Size: 296.96 KB | Download (96): Ace::Object Download |
Class::Method::hash is a Perl module that helps you create methods for handling a hash value. SYNOPSIS use Class::MethodMaker [ hash => [qw/ x /] ]; $instance->x; # empty $instance->x(a => 1, b => 2, c => 3); $instance->x_count == 3; # true $instance->x = (b => 5, d => 8); # Note this...
Platforms: *nix
License: Freeware | Size: 89.09 KB | Download (105): Class::Method::hash Download |
DBIx::Class::Manual::Cookbook is a Perl module that contains miscellaneous recipes. Paged results When you expect a large number of results, you can ask DBIx::Class for a paged resultset, which will fetch only a small number of records at a time: my $rs = $schema->resultset(Artist)->search(...
Platforms: *nix
License: Freeware | Size: 286.72 KB | Download (101): DBIx::Class::Manual::Cookbook Download |
Class::MakeMethods::Template package contains extensible code templates. SYNOPSIS package MyObject; use Class::MakeMethods::Template::Hash ( new => new, string => foo, number => bar, ); my $obj = MyObject->new( foo => "Foozle", bar => 23 ); print $obj->foo(); $obj->bar(42);...
Platforms: *nix
License: Freeware | Size: 163.84 KB | Download (87): Class::MakeMethods::Template Download |
Class::MakeMethods::Template::Generic Perl module contains templates for common meta-method types. SYNOPSIS package MyObject; use Class::MakeMethods ( Template::Hash:new => [ new ], Template::Hash:scalar => [ foo ] Template::Static:scalar => [ bar ] ); package main; my $obj =...
Platforms: *nix
License: Freeware | Size: 153.6 KB | Download (87): Class::MakeMethods::Template::Generic Download |
Class::Maker Perl module contains classes, reflection, schema, serialization, attribute- and multiple inheritance. SYNOPSIS use Class::Maker qw(class); class Human, { isa => [qw( ParentClass )], public => { string => [qw(name lastname)], ref => [qw(father mother)], array =>...
Platforms: *nix
License: Freeware | Size: 49.15 KB | Download (110): Class::Maker Download |