Udlei D. R. Nattis > Ananke-Utils-1.0.2 > Ananke::Utils

Download:
Ananke-Utils-1.0.2.tgz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.0.2   Source  

NAME ^

Ananke::Utils - Utility functions

DESCRIPTION ^

Utility functions used to facility your life

SYNOPSIS ^

        See all functions

METHODS ^

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 ^

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