19 |
|
# setuptoolsinarea($area[,$toolname[,$toolversion[,toolfile]) : setup |
20 |
|
# arch() : get/set the architecture string |
21 |
|
# scramobjectinterface(Class) : print out the interface of a scram class |
22 |
+ |
# webget(area,url) : get the url into the cache of the specified area |
23 |
|
|
24 |
|
package Scram::ScramFunctions; |
25 |
|
use URL::URLcache; |
144 |
|
return $area; |
145 |
|
} |
146 |
|
|
147 |
+ |
sub webget { |
148 |
+ |
my $self=shift; |
149 |
+ |
my $area=shift; |
150 |
+ |
my $url=shift; |
151 |
+ |
|
152 |
+ |
my $handler=URL::URLhandler->new($area->cache()); |
153 |
+ |
return ($handler->get($url)); |
154 |
+ |
} |
155 |
+ |
|
156 |
|
sub addareatoDB { |
157 |
|
my $self=shift; |
158 |
|
my $area=shift; |