Hub::Base::Config -
Part of the Hub Library
Add a path to the list of source paths. Call's to the getSourcePath() will get files from these added paths. Paths are added to the beginning of the list, thus having precedence to existing paths. $class->addSourcePath( path )
addTargetPath( $path )
Add a path to the list of target paths. Call's to the getSourcePath() will get files from these added paths.
Paths are added to the beginning of the list, thus having precedence to existing paths.
Retreive a runtime constant $class->get( "key:subkey:subsubkey" ); $class->get( "key", "default" );
Retreive a runtime constant $class->getConst( key ) $class->getConst( key, default )
get a path to an existing image. first try the website path, then the common one.
Usage: getProps
return the properties hash reference
Usage: getResource( $type, $name, $filename )
Find the relative path to the specified resource.
$type Can be 'sound', 'image', 'video', or 'data' $name Is the source name such as: 'img-logo-main' $filename Is the filename of the resource.
If $name is empty, we will look in the base directory of all locations.
If $filename is empty, we will return the first matching directory.
Usage: refresh()
Throughout the life of a request, many things get shoved in here. Like screen values and user preferences. Hence, this method to re-init is called at the beginning of each request. Which is good, since it also re-reads the *.conf files from disk if they have been modified.
Remove a source path
Remove a target source path
Retreive a runtime constant $class->setConst( key, value )
Ryan Gies
Copyright (c) 2006 Livesite Networks, LLC. All rights reserved.
Copyright (c) 2000-2005 Ryan Gies. All rights reserved.
This file created by mkdocs.pl on 8/29/2006 at 2:07pm
To install Hub, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hub
CPAN shell
perl -MCPAN -e shell install Hub
For more information on module installation, please visit the detailed CPAN module installation guide.