11 |
|
# cache() : Return the cache |
12 |
|
# store(object,@keys) : |
13 |
|
# find (@keys) : |
14 |
+ |
# basedoc() : set/return the base doc |
15 |
|
|
16 |
|
package ActiveDoc::ActiveConfig; |
17 |
|
require 5.004; |
35 |
|
$self->{cache}=URL::URLcache->new($dir."/cache"); |
36 |
|
} |
37 |
|
|
38 |
+ |
sub basedoc { |
39 |
+ |
my $self=shift; |
40 |
+ |
|
41 |
+ |
@_?$self->{basedoc}=shift |
42 |
+ |
:$self->{basedoc}; |
43 |
+ |
} |
44 |
+ |
|
45 |
|
sub cache { |
46 |
|
my $self=shift; |
47 |
|
return $self->{cache}; |
55 |
|
return if $AUTOLOAD=~/::DESTROY$/; |
56 |
|
|
57 |
|
($call=$AUTOLOAD)=~s/^.*:://; |
58 |
+ |
# print "Calling $call from ".$self->{objectstore}."\n"; |
59 |
|
return $self->{objectstore}->$call(@_); |
60 |
|
} |