| WWW-AdServer documentation | Contained in the WWW-AdServer distribution. |
WWW::AdServer::Logger - strategy class for logging impressions / clickthrus
use WWW::AdServer::Logger::Foo; my $logger = WWW::AdServer::Logger::Foo->new( $r ); $logger->log_impression($advert); $logger->log_clickthru($advert);
Declares an interface common to all Logger subclasses.
Constructor for a Logger strategy. Must be supplied with either an Apache request object or an Apache::Emulator object (if called through CGI).
Logs a view of an advert.
Logs a clickthru on an advert.
None by default.
Nigel Wetters (nwetters@cpan.org)
Copyright (c) 2001, Nigel Wetters. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.
| WWW-AdServer documentation | Contained in the WWW-AdServer distribution. |
package WWW::AdServer::Logger; $VERSION = '0.01'; use strict; use vars qw ( $VERSION ); use Carp; sub new { my ($class, $r) = @_; croak ('Displayer strategies must be constructed with an Apache request object') unless (defined $r); my $self = bless \$r, $class; return $self; } sub log_impression { croak ('class has not implimented log method'); } sub log_clickthru { croak ('class has not implimented log method'); } 1; __END__