1 package CXGN
::Phylo
::Configuration
;
5 CXGN::Phylo::Configuration -- configuration information for the Phylo package
9 The idea of this class is to abstract the SGN configuration so that this wonderful piece of software can be run independently of the SGN system.
11 People wishing to use the software have to fill in the function of the module with the appropriate values for their site.
22 my $self = bless $args, $class;
26 =head2 function get_temp_dir()
28 Synopsis: $temp_file_dir = $configuration->get_temp_file_dir()
30 Returns: the fully qualified path of the temp file directory
31 This needs to be writable by the Apache user (nobody, www-data,
33 Side effects: the temporary files created by tree browser will be stored
34 there. The directory will need to be cleaned from time to time
35 by something like a cron job.
42 my $vhost = SGN
::Context
->new;
43 $self->{temp_dir
} = $vhost->get_conf("basepath").$vhost->get_conf("tempfiles_subdir")."/tree_browser";