Gossamer Forum
Quote Reply
$self
Hi,

Can someone tell me how to print out all the values stored in $self. I can print out each one by using the field name-

print $self->{cgi}->{field_name};

but I would like to print out all the key/values stored in each of the following (some I don't know the key name) -

$self->{in} # a GT::CGI object
$self->{cgi} # a hash of current form input
$self->{sql} # a GT::SQL object connected to the database
$self->{glb_cfg} # a hash of global config options
$self->{cfg} # current table options (like view permissions, etc)
$self->{user} # a hash of currently logged in user.

What's the correct code to write to access all the values so I know what is actually available for me to use in my plugin?

Thanks

Simon.
Subject Author Views Date
Thread $self jai 2538 Oct 16, 2002, 3:09 AM
Post Re: [jai] $self
604 2504 Oct 16, 2002, 9:48 AM
Post Re: [jai] $self
Alex 2484 Oct 16, 2002, 10:15 AM