ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/ActiveDoc/StarterDoc.pm
Revision: 1.2
Committed: Thu Jan 20 18:18:46 2000 UTC (25 years, 3 months ago) by williamc
Content type: text/plain
Branch: MAIN
Changes since 1.1: +10 -16 lines
Log Message:
HIP additions

File Contents

# Content
1 #
2 # StarterDoc.pm - An active Document
3 #
4 # Originally Written by Christopher Williams
5 #
6 # Description
7 # -----------
8 # define a base document from which to get default ActiveDoc parameters
9 # One of these need to be instantiated for each configuration area
10 #
11 # Interface
12 # ---------
13 # new(ActiveConfig,userinterface,userquery) : A new StarterDoc object
14
15 package ActiveDoc::StarterDoc;
16 require 5.001;
17 use ActiveDoc::ActiveDoc;
18 use ActiveDoc::ActiveConfig;
19 use ActiveDoc::Query;
20 use URL::URLcache;
21 use ObjectUtilities::ObjectStore;
22
23 @ISA=qw(ActiveDoc::ActiveDoc);
24
25 sub new {
26 my $class=shift;
27 $self={};
28 bless $self, $class;
29 $self->_init(@_);
30 return $self;
31 }
32
33 sub _init {
34 my $self=shift;
35 my $config=shift;
36 my $userinterface=shift;
37 my $userquery=shift;
38
39 #-- All comunication with the outside world through userquery object
40 $self->{Query}=$userquery;
41 $self->userinterface($userinterface);
42
43 # set up default Configurations
44 $self->{ActiveConfig}=$config;
45 $self->{ActiveConfig}->basedoc($self); # register as the basedoc
46 $self->_init2();#add a few things all docs should have
47 $self->init();
48 }
49
50 sub init {
51 # dummy to be overriden
52 }