Labyrinth::Variables - Generic Variables for Labyrinth
use Labyrinth::Variables; # output values $tvars{title} = 'My Title';
The Variables package contains a number of variables that are used across the system. The variables contain input and output values, and the functions are generic.
use Labyrinth::Variables; # default (:all) = (:vars :subs) use Labyrinth::Variables qw(:vars); # all variable containers use Labyrinth::Variables qw(:subs); # all standard subroutines use Labyrinth::Variables qw(:xsub); # all extended subroutines
Holds all the scalar CGI parameter values. Access parameters as:
my $value = $cgiparams{$name};
Holds all the template variable values, for use with the template parser. Access template variables as:
my $value = $tvars{$name}; # get the named variable $tvars{$name} = $value; # set scalar variable $tvars{$hash} = \%hash; # set hash variable $tvars{$list} = \@list; # set array variable
Holds the reference to the DB access object. Created by the DBConnect() method, which must be called before any database activity commences.
Prepares the standard variable values, so that they are only called once on setup.
ParseParams only handles the scalar interface (CGI) parameters. In the event an array is required, CGIArray() is used to find and validate the parameter, before returning the list of values.
Given a list of fields, checks whether the interface (CGI) parameters have been set. Sets error conditions if any are missing.
Sets the error condition as given.
Set the next commmand to be run.
Loads the permissions profiles, as stored in profiles config file.
Loads the access permissions, as stored in the database.
Labyrinth
Barbie, <barbie@missbarbell.co.uk> for Miss Barbell Productions, http://www.missbarbell.co.uk/
Copyright (C) 2002-2015 Barbie for Miss Barbell Productions All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the Artistic License 2.0.
To install Labyrinth, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Labyrinth
CPAN shell
perl -MCPAN -e shell install Labyrinth
For more information on module installation, please visit the detailed CPAN module installation guide.