Util::DataThing - A simple framework for creating introspectable business objects
package ExampleApp::Person; use base qw(Util::DataThing); __PACKAGE__->declare_property('name', STRING);
This class provides a framework for providing business objects within an application.
Subclasses of this class support introspection via the type method, which returns a Util::DataThing::Type object describing the class.
type
The internal structure of the objects is opaque to subclasses and should not be relied upon. Subclasses may define new methods in addition to those created with this class's register_ methods, but they should be implemented in terms of the property accessors created by this class, not direct access to the object internals.
register_
This is not an ORM or other mechanism for abstracting away your data access layer, but if you want to use an ORM then objects created with this class may be a good thing for your ORM to return.
TODO: Write more docs
Written and maintained by Martin Atkins <mart@degeneration.co.uk>.
Copyright 2009 Six Apart Ltd. All Rights Reserved.
The items in this distribution may be distributed under the same terms as Perl itself.
To install Util::DataThing, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Util::DataThing
CPAN shell
perl -MCPAN -e shell install Util::DataThing
For more information on module installation, please visit the detailed CPAN module installation guide.