pf::util - module for generic functions and utilities used by all the modules.
pf::util contains many functions and utilities used by the other different modules.
In the database we store the connection type as a string but we use a constant binary value internally. This converts from the constant binary value to the string.
return connection_type string (as defined in pf::config) or an empty string if connection type not found
In the database we store the connection type as a string but we use a constant binary value internally. This parses the string from the database into the the constant binary value.
return connection_type constant (as defined in pf::config) or undef if connection type not found
Returns a triplet with singular and plural english string representation plus integer of a time string as defined in pf.conf.
ex: 7D will return ("day", "days", 7)
Returns undef on failure
Inverse inc. <info@inverse.ca>
Minor parts of this file may have been contributed. See CREDITS.
Copyright (C) 2005-2015 Inverse inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Hey! The above document had some coding errors, which are explained below:
=back without =over