Bric::App::Util - A class to house general application functions.
$Revision: 1.15.4.1 $
$Date: 2003/03/12 16:20:47 $
use Bric::App::Util;
Utility functions.
NONE
Add a new warning message to the current list of messages.
Throws:
NONE
Side Effects:
Sets global variable %HTML::Mason::Commands::session
Notes:
NONE
Return warning message number '$num' or if $num is not given return all error messages.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns the next warning message in the list. If there are no more messages, it will return undef.
Throws:
NONE
Side Effects:
Sets global variable %HTML::Mason::Commands::session
Notes:
NONE
Returns the current number of warning messages.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Clears out all the error messages remaining. This should be called after all messages have been processed.
Throws:
NONE
Side Effects:
Sets global variable %HTML::Mason::Commands::session
Notes:
NONE
Returns an array reference. If $arg is an anonymous array, it is simply returned. If it's a defined scalar, it's returned as the single value in an anonymous array. If it's undef, an empty anonymous array will be returned.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
Returns a preference value.
Throws:
Unable to instantiate preference cache.
Unable to populate preference cache.
Unable to connect to database.
Unable to prepare SQL statement.
Unable to execute SQL statement.
Unable to bind to columns to statement handle.
Unable to fetch row from statement handle.
Unable to get cache value.
Side Effects: NONE.
Notes: Uses Bric::Util::Pref->lookup_val() internally.
Returns the package name given a short name.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
Get/Set/Delete a redirect to happen during the next page load that includes the 'header.mc' header element.
Throws:
NONE
Side Effects:
Sets global variable %HTML::Mason::Commands::session
Notes:
This only works with pages that use the 'header.mc' element.
If there is a redirected set, then redirect the browser, otherwise return.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Redirect to a different location.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Uses a JavaScript function call to redirect the browser to a different location. Will not clear out the buffer, first, so stuff sent ahead will still draw in the browser.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
Log the current URL for historical purposes.
Throws:
NONE
Side Effects:
Populates the history key of the session data.
Notes:
NONE
Grab the $n-th page visited. Argument $n defaults to 1, or the very last page (A $n value of 0 is the current page). Only MAX_HISTORY pages are saved.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Grab the $n-th page visited. Argument $n defaults to 1, or the very last page (A $n value of 0 is the current page). Only MAX_HISTORY pages are saved.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
NONE
NONE
NONE
NONE
NONE
Garth Webb <garth@perijove.com> David Wheeler <david@wheeler.net>