[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Global Namespaces
- Subject: Global Namespaces
- From: Chris Travers <..hidden..>
- Date: Sat, 13 Mar 2010 11:00:01 -0800
I am thinking of suggesting two global namespaces
In package LedgerSMB
use Class::Struct LedgerSMB::Globals => {
user => 'LedgerSMB::User',
session => 'LedgerSMB::Session',
config => 'LedgerSMB::ConfigFile',
# Config settings, similar to Sysconfig today
};
our Globals = LedgerSMB::Globals->new();
in pacakge LedgerSMB::Web:
use Class::Struct LedgerSMB::Web::Globals => {
session => 'LedgerSMB::Session::Web',
request => 'LedgerSMB::Web::Request',
};
our Globals = LedgerSMB::Web::Globals->new();
Any other globally accessible information that needs to be available
globally through apps/scripts?
Best Wishes,
Chris Travers