ctkBase

        This class is the base class for all clicktTk classes.

Syntax

        use ctkBase;
        use base (qw/ctkBase/);
        $self->dump(<values>);
        $self->quoteValue(<values>);
        $self->getDateAndTime();
        $self->trace(<array of strings>);
        $self->log(<array of strings>);

Programming notes

Base structure
        Constructor blesses a variable of type HASH.
Class member
        None
Data member
        None
Properties
        debug
Constructor
        new(debug => <debug mode>)
        _init
Destructor

destroy

Methods
        trace
        Log
        log
        getDateAndTime
        _dump
        dump
        quoteValue

Maintenance

        Author: Marco
        date:   01.01.2007
        History
                        06.12.2007 refactoring
                        14.04.2008 version 1.03
                        31.05.2008 version 1.04

dump

        Convert the given arguments to its printable
        form using Data::Dumper
        Return depending on the context either an array of elements or a string concatenating all given
        elements .
        Unlike Data::Dumper methods this methods accept a list of variables or ref to variables.
        A parallel array for the var names isn't required.
        Examples
                my $x = ctkBase->dump( 1 2 3)  ## yields 1 \n 2 \n 3 \n
                my @x = ctkBase->dump( 1 2 3)  ## yields (1 2 3)
                my @x = ctkBase->dump( [qw/1 2 3/])  ## yields [\n 1 \n 2 \n 3\n ] \n

quoteValue

        This method returns the given string enclosed in quotation's marks.
        So the argument 123 is returned as a strin containing '123'.
        If the argument is an array, so all elements are quotated.
        Pls note that the method doesn't neither scan the argument itself for
        quotations chars nor check if it has already been quotated.

Back to index