OpusVL::Preferences::RolesFor::Result::PrfOwner
version 0.27
If you are using DBIx::Class::Schema::Loader add the necessary link fields manually, otherwise add the following line to add the fields to your result class.
__PACKAGE__->prf_owner_init;
Tries to add the columns and relationships for your result class. Call it like this,
Your mileage may vary.
ResultSet for the defaults.
ResultSet of the preference values.
Gets the setting. If the object doesn't have the setting specified but there is a default, the default will be returned.
Sets the setting for the object.
Resets the settings against the object. prf_get may still return a value if there is a default for the setting.
Returns an array of the current results preferences.
$object->preferences_to_array(); # [{ # name => $_->name, # value => $_->value, # param => # assocaited PrfDefault parameter definition. # } ];
Returns the same as preferences_to_array but instead of the param object it returns the field label. The safe refers to the fact that all the items in the hash are base types and therefore are trivially serializable.
Returns the same as safe_prefs_to_hash but converts it to a hash for easier use.
Copyright (C) 2011 OpusVL
This software is licensed according to the "IP Assignment Schedule" provided with the development project.
Provides the default column that contains the preferences identifier.
If your Result doesn't have a standard integer primary key called 'id', override this with the name of another column that is an identifying integer
OpusVL - www.opusvl.com
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.
To install OpusVL::Preferences, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpusVL::Preferences
CPAN shell
perl -MCPAN -e shell install OpusVL::Preferences
For more information on module installation, please visit the detailed CPAN module installation guide.