Ananke::Utils - Utility functions


Ananke-Utils documentation  | view source Contained in the Ananke-Utils distribution.

Index


NAME

Top

Ananke::Utils - Utility functions

DESCRIPTION

Top

Utility functions used to facility your life

SYNOPSIS

Top

	See all functions

METHODS

Top

getCookies()

	Retrieves any cookie information from the browser

	%cookies = Ananke::Utils::getCookies;

getTime(timestamp)

	Return time in hh:mm:ss

	$var = &Ananke::Utils::getTime(time());

replace_chars(string)

	Replace all bad chars to html format

	$var = &Ananke::Utils::escape("«¼TesTЪ");

getForm(x,x)

	If you use modperl, this functions is very good

	my $r = shift;
	my (%form,$i,$j);
	$i=$r->content; $j=$r->args;
	%form = &Ananke::Utils::getForm($i,$j);

	this function understand array input, id[1], id[2],id[3]...

salt()

	Return randomic string, used for generate password

escape(string)

	URL encode

	http://web/this has spaces' -> 'http://web/this%20has%20spaces'

	$var = &Ananke::Utils::escape($ENV{'REQUEST_URI'});

unescape(string)

	URL decode

	http://web/this%20has%20spaces -> http://web/this has spaces'

	$var = &Ananke::Utils::unescape("http://web/this%20has%20spaces");

clean(string)

	Convert enter to <br> and 2 enters to <p>

	$var = clean($textarea);

AUTHOR

Top

	Udlei D. R. Nattis
	nattis@anankeit.com.br
	http://www.nobol.com.br
	http://www.anankeit.com.br


Ananke-Utils documentation  | view source Contained in the Ananke-Utils distribution.