NAME

SPOPS::Configure::Ruleset - Install variables, subroutines and process inherited rulesets per class

SYNOPSIS

# Note that this is almost (entirely?) exclusively done
# from SPOPS::Configure

SPOPS::Configure::Ruleset->create_relationship( $spops_config );

DESCRIPTION

This class only has one method: create_relationship. It is almost always called from the SPOPS::Configure class after doing intitial processing of classes. The method takes configuration information for a SPOPS class.

For this class, we install a package variable \%RULESET and a method RULESET which returns that hashref. The variable \%RULESET holds all of the applicable rules for that particular class, and after creating the variable and subroutine we find all of the rules inherited by the class and install them in the class. This is a performance win, since we do not need to dynamically search them out everytime the rules for a particular action need to be executed.

See SPOPS for more information about what a ruleset is and how it is executed.

METHODS

create_relationship( \%spops_config )

Install the package variable \%RULESET and the method RULESET to access it. Also find all the rules that apply to a particular class (inherited from parents) and install to the class.

TO DO

BUGS

COPYRIGHT

Copyright (c) 2001 intes.net, inc.. All rights reserved.

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

AUTHORS

Chris Winters <chris@cwinters.com>