OpenERP::OOM::Link::Provider
This is the role for a link provider that provides a way to link another dataset, normally a DBIC dataset.
package MyLinkProvider; use Moose; with 'OpenERP::OOM::Link::Provider'; sub provide_link { my ($self, $class) = @_; my $package = ($class =~ /^\+/) ? $class : "OpenERP::OOM::Link::$class"; eval "use $package"; $self->ensure_class_loaded($package); return $package->new( schema => $self, config => $self->link_config->{$class}, ); } 1;
This method should close any open database connections held by the link provider.
Copyright (C) 2011 OpusVL
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install OpenERP::OOM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenERP::OOM
CPAN shell
perl -MCPAN -e shell install OpenERP::OOM
For more information on module installation, please visit the detailed CPAN module installation guide.