| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | # -*- perl -*- | 
| 2 |  |  |  |  |  |  |  | 
| 3 |  |  |  |  |  |  | # | 
| 4 |  |  |  |  |  |  | # $Id: Main2.pm,v 1.4 2003/12/16 15:21:23 eserte Exp $ | 
| 5 |  |  |  |  |  |  | # Author: Slaven Rezic | 
| 6 |  |  |  |  |  |  | # | 
| 7 |  |  |  |  |  |  | # Copyright (C) 2002 Online Office Berlin. All rights reserved. | 
| 8 |  |  |  |  |  |  | # Copyright (C) 2002 Slaven Rezic. | 
| 9 |  |  |  |  |  |  | # This is free software; you can redistribute it and/or modify it under the | 
| 10 |  |  |  |  |  |  | # terms of the GNU General Public License, see the file COPYING. | 
| 11 |  |  |  |  |  |  |  | 
| 12 |  |  |  |  |  |  | # | 
| 13 |  |  |  |  |  |  | # Mail: slaven@rezic.de | 
| 14 |  |  |  |  |  |  | # WWW:  http://we-framework.sourceforge.net | 
| 15 |  |  |  |  |  |  | # | 
| 16 |  |  |  |  |  |  |  | 
| 17 |  |  |  |  |  |  | package WE_Frontend::Main2; | 
| 18 |  |  |  |  |  |  |  | 
| 19 | 6 |  |  | 6 |  | 34097 | use strict; | 
|  | 6 |  |  |  |  | 13 |  | 
|  | 6 |  |  |  |  | 327 |  | 
| 20 | 6 |  |  | 6 |  | 31 | use vars qw($VERSION); | 
|  | 6 |  |  |  |  | 12 |  | 
|  | 6 |  |  |  |  | 558 |  | 
| 21 |  |  |  |  |  |  | $VERSION = sprintf("%d.%02d", q$Revision: 1.4 $ =~ /(\d+)\.(\d+)/); | 
| 22 |  |  |  |  |  |  |  | 
| 23 |  |  |  |  |  |  | package WE_Frontend::Main; | 
| 24 |  |  |  |  |  |  |  | 
| 25 | 6 |  |  | 6 |  | 33 | use base qw(Class::Accessor); | 
|  | 6 |  |  |  |  | 15 |  | 
|  | 6 |  |  |  |  | 5749 |  | 
| 26 |  |  |  |  |  |  | __PACKAGE__->mk_accessors(qw(Root Config)); | 
| 27 |  |  |  |  |  |  |  | 
| 28 | 6 |  |  | 6 |  | 16306 | use WE_Frontend::MainCommon; | 
|  | 6 |  |  |  |  | 17 |  | 
|  | 6 |  |  |  |  | 574 |  | 
| 29 |  |  |  |  |  |  |  | 
| 30 |  |  |  |  |  |  | =head1 NAME | 
| 31 |  |  |  |  |  |  |  | 
| 32 |  |  |  |  |  |  | WE_Frontend::Main2 - a collection of we_redisys (frontend) related functions | 
| 33 |  |  |  |  |  |  |  | 
| 34 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 35 |  |  |  |  |  |  |  | 
| 36 |  |  |  |  |  |  | use WE_Frontend::Main2; | 
| 37 |  |  |  |  |  |  | my $fe = new WE_Frontend::Main -root => $root, -config => $wesiteinfo_config_object; | 
| 38 |  |  |  |  |  |  | $fe->publish; | 
| 39 |  |  |  |  |  |  | $fe->searchindexer; | 
| 40 |  |  |  |  |  |  |  | 
| 41 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 42 |  |  |  |  |  |  |  | 
| 43 |  |  |  |  |  |  | This is the next generation of the old C module. | 
| 44 |  |  |  |  |  |  | Both modules share the same methods, but have a different constructor | 
| 45 |  |  |  |  |  |  | API. | 
| 46 |  |  |  |  |  |  |  | 
| 47 |  |  |  |  |  |  | Note that all methods are loaded into the C. | 
| 48 |  |  |  |  |  |  | Therefore it is not possible to use the old and this version of the | 
| 49 |  |  |  |  |  |  | module at the same time. | 
| 50 |  |  |  |  |  |  |  | 
| 51 |  |  |  |  |  |  | Because of this, you cannot "use base" for inheritance, but rather: | 
| 52 |  |  |  |  |  |  |  | 
| 53 |  |  |  |  |  |  | use WE_Frontend::Main2; | 
| 54 |  |  |  |  |  |  | push @ISA, "WE_Frontend::Main"; | 
| 55 |  |  |  |  |  |  |  | 
| 56 |  |  |  |  |  |  | =head2 MEMBERS | 
| 57 |  |  |  |  |  |  |  | 
| 58 |  |  |  |  |  |  | The C class has two members: C and C. | 
| 59 |  |  |  |  |  |  |  | 
| 60 |  |  |  |  |  |  | =head2 METHODS | 
| 61 |  |  |  |  |  |  |  | 
| 62 |  |  |  |  |  |  | See the method listing in L. | 
| 63 |  |  |  |  |  |  |  | 
| 64 |  |  |  |  |  |  | =cut | 
| 65 |  |  |  |  |  |  |  | 
| 66 |  |  |  |  |  |  | sub new { | 
| 67 | 1 |  |  | 1 |  | 18 | my($class, %args) = @_; | 
| 68 | 1 |  |  |  |  | 3 | my $self = {}; | 
| 69 | 1 |  |  |  |  | 4 | bless $self, $class; | 
| 70 | 1 |  |  |  |  | 9 | $self->Root($args{-root}); | 
| 71 | 1 |  |  |  |  | 33 | $self->Config($args{-config}); | 
| 72 | 1 |  |  |  |  | 12 | $self; | 
| 73 |  |  |  |  |  |  | } | 
| 74 |  |  |  |  |  |  |  | 
| 75 |  |  |  |  |  |  | 1; | 
| 76 |  |  |  |  |  |  |  | 
| 77 |  |  |  |  |  |  | __END__ |