Colin Newell > OpenERP-OOM > OpenERP::OOM::Link::Provider

Download:
OpenERP-OOM-0.44.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.44   Source  

NAME ^

OpenERP::OOM::Link::Provider

VERSION ^

version 0.44

SYNOPSIS ^

    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;

DESCRIPTION ^

This is the role for a link provider that provides a way to link another dataset, normally a DBIC dataset.

NAME ^

OpenERP::OOM::Link::Provider

METHODS ^

close_connections

This method should close any open database connections held by the link provider.

COPYRIGHT and LICENSE ^

Copyright (C) 2011 OpusVL

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR ^

Jon Allen (JJ), <jj@opusvl.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2011-2016 by OpusVL.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: