Name
CatalystX::Usul::File::Element - Element object definition
Version
0.1.$Revision: 402 $
Synopsis
use CatalystX::Usul::File::Element;
__PACKAGE__->config( element_class => q(CatalystX::Usul::File::Element) );
__PACKAGE__->mk_accessors( qw(element_class) );
sub find {
my ($self, $name) = @_; my $elements = $self->storage->select;
return unless ($name && exists $elements->{ $name });
my $attrs = $elements->{ $name }; $attrs->{name} = $name;
return $self->element_class->new( $self, $attrs );
}
Description
This is analogous to the row object in DBIx::Class
Subroutines/Methods
new
Creates accessors and mutators for the attributes defined by the schema class
delete
Calls the delete method in the storage class
insert
Calls the insert method in the storage class
update
Calls the update method in the storage class
Diagnostics
None
Configuration and Environment
None
Dependencies
Incompatibilities
There are no known incompatibilities in this module
Bugs and Limitations
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Author
Peter Flanigan, <Support at RoxSoft.co.uk>
License and Copyright
Copyright (c) 2008 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE