NAME
OpusVL::SysParams::RolesFor::Schema
VERSION
version 0.15
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');
NAME
OpusVL::SysParams::RolesFor::Schema
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, <colin at opusvl.com>
LICENSE AND COPYRIGHT
Copyright 2011 OpusVL.
This software is licensed according to the "IP Assignment Schedule" provided with the development project.
AUTHOR
OpusVL - www.opusvl.com
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 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.