| CatalystX-Usul documentation | view source | Contained in the CatalystX-Usul distribution. |
CatalystX::Usul::File::Element - Element object definition
0.3.$Revision: 576 $
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 );
}
This is analogous to the row object in DBIx::Class
Creates accessors and mutators for the attributes defined by the schema class
Calls the delete method in the storage class
Calls the insert method in the storage class
Calls the update method in the storage class
None
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Peter Flanigan, <Support at RoxSoft.co.uk>
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
| CatalystX-Usul documentation | view source | Contained in the CatalystX-Usul distribution. |