Alastair McGowan-Douglas
and 1 contributors

NAME

OpusVL::SysParams::RolesFor::Schema

VERSION

version 0.20

SYNOPSIS

This allows for our logging to be inserted into an existing schema and make use of the existing connection details. The class actually injects our schema objects into the existing schema and adds a 'sys_params' object to the schema.

    # in your schema class.
    with 'OpusVL::SysParams::RolesFor::Schema';
    OpusVL::SysParams::RolesFor::Schema->setup_sysparams(__PACKAGE__);

    # now anywhere that has access to the schema can access the 
    # sys_params object.
    $schema->sys_params->get('param.name'); 

METHODS

sys_params

The OpusVL::SysParams object connected via your schema.

setup_sysparams

This method injects the result/resultset objects needed by the SysParams object into a the schema this role has been applied to. If this isn't called as suggested in the synopsis you will need to have these results already loaded in your schema somehow.

AUTHOR

OpusVL - www.opusvl.com

COPYRIGHT AND LICENSE

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

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