setting $session->user now changes the id for the session as it should

continued adding ad management system
added field sets to htmlform and tab form
This commit is contained in:
JT Smith 2006-04-06 22:28:13 +00:00
parent f9b8582426
commit ae8f3d87f6
13 changed files with 565 additions and 14 deletions

View file

@ -0,0 +1,43 @@
package WebGUI::Macro::AdSpace;
#-------------------------------------------------------------------
# WebGUI is Copyright 2001-2006 Plain Black Corporation.
#-------------------------------------------------------------------
# Please read the legal notices (docs/legal.txt) and the license
# (docs/license.txt) that came with this distribution before using
# this software.
#-------------------------------------------------------------------
# http://www.plainblack.com info@plainblack.com
#-------------------------------------------------------------------
use strict;
use WebGUI::AdSpace;
=head1 NAME
Package WebGUI::Macro::AdSpace
=head1 DESCRIPTION
Macro for displaying ads from the ad management system in WebGUI.
=head2 process ( name )
=head3 name
The unique name of an Ad Space.
=cut
#-------------------------------------------------------------------
sub process {
my $session = shift;
my $name = shift;
my $adSpace = WebGUI::AdSpace->newByName($session, $name);
return undef unless defined $adSpace;
return $adSpace->displayImpression;
}
1;