removal of dumpSession.
This commit is contained in:
parent
7d1dfed519
commit
4a3121960f
199 changed files with 379 additions and 404 deletions
|
|
@ -54,7 +54,7 @@ These methods are available from this class:
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
sub _create {
|
||||
my $session = shift; use WebGUI; WebGUI::dumpSession($session);
|
||||
my $session = shift;
|
||||
my $userId = shift || $session->id->generate();
|
||||
$session->db->write("insert into users (userId,dateCreated) values (".$session->db->quote($userId).",".time().")");
|
||||
WebGUI::Group->new($session,[2])->addUsers([$userId]);
|
||||
|
|
@ -470,7 +470,7 @@ A unique ID to use instead of the ID that WebGUI will generate for you. It must
|
|||
|
||||
sub new {
|
||||
my $class = shift;
|
||||
my $session = shift; use WebGUI; WebGUI::dumpSession($session);
|
||||
my $session = shift;
|
||||
my $userId = shift || 1;
|
||||
my $overrideId = shift;
|
||||
$userId = _create($session, $overrideId) if ($userId eq "new");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue