<<

NAME

pf::util - module for generic functions and utilities used by all the modules.

DESCRIPTION

pf::util contains many functions and utilities used by the other different modules.

METHODS

pfmailer - send an email

send_email - Send an email using a template

connection_type_to_str

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

str_to_connection_type

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

get_translatable_time

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

AUTHOR

Inverse inc. <info@inverse.ca>

Minor parts of this file may have been contributed. See CREDITS.

COPYRIGHT

Copyright (C) 2005-2015 Inverse inc.

LICENSE

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.

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 356:

=back without =over

<<