/openshift/adei

To get this branch, use:
bzr branch http://darksoft.org/webbzr/openshift/adei

« back to all changes in this revision

Viewing changes to setups/katrin/classes/kdbconfiguration.php

  • Committer: Suren A. Chilingaryan
  • Date: 2012-02-07 22:44:15 UTC
  • Revision ID: csa@dside.dyndns.org-20120207224415-sy360wa1ammhd1ph
Use localization subsystem, updated Katrin configs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
// $Id$
3
 
// Author: Sebastian Voecking <sebastian.voecking@uni-muenster.de>
4
 
 
5
 
ADEI::RequireClass("KDBConfigFile", true);
6
 
 
7
 
class KDBConfiguration
8
 
{
9
 
    private $fDebug = false;
10
 
    private $fSqlServer = "localhost";
11
 
    private $fSqlDbName = "katrin";
12
 
    private $fSqlUser = "s_voec01";
13
 
    private $fSqlPassword = "";
14
 
    private $fFileServerRoot = "/data";
15
 
    private $fPathOrca = NULL;
16
 
    private $fPathOrcaRoot = NULL;
17
 
    private $fPathCrun = NULL;
18
 
    private $fPathPlots = NULL;
19
 
    
20
 
    function __construct($filename)
21
 
    {
22
 
        $file = new KDBConfigFile($filename);
23
 
        $this->fDebug = $file->GetValue("debug", $this->fDebug);
24
 
        $this->fFileServerRoot =
25
 
            $file->GetValue("file_server_root", $this->fFileServerRoot);
26
 
        $this->fSqlServer = $file->GetValue("sql_server", $this->fSqlServer);
27
 
        $this->fSqlDbName = $file->GetValue("sql_dbname", $this->fSqlDbName);
28
 
        $this->fSqlUser = $file->GetValue("sql_user", $this->fSqlUser);
29
 
        $this->fSqlPassword =
30
 
            $file->GetValue("sql_password", $this->fSqlPassword);
31
 
        $this->fPathOrca = $file->GetValue("path_orca", $this->fPathOrca);
32
 
        $this->fPathOrcaRoot =
33
 
            $file->GetValue("path_orcaroot", $this->fPathOrcaRoot);
34
 
        $this->fPathCrun = $file->GetValue("path_crun", $this->fPathCrun);
35
 
        $this->fPathPlots = $file->GetValue("path_plots", $this->fPathPlots);
36
 
    }
37
 
 
38
 
    function GetDebug()
39
 
    {
40
 
        return $this->fDebug;
41
 
    }
42
 
 
43
 
    function GetSqlServer()
44
 
    {
45
 
        return $this->fSqlServer;
46
 
    }
47
 
 
48
 
    function GetSqlDbName()
49
 
    {
50
 
        return $this->fSqlDbName;
51
 
    }
52
 
 
53
 
    function GetSqlUser()
54
 
    {
55
 
        return $this->fSqlUser;
56
 
    }
57
 
 
58
 
    function GetSqlPassword()
59
 
    {
60
 
        return $this->fSqlPassword;
61
 
    }
62
 
 
63
 
    function GetFileServerRoot()
64
 
    {
65
 
        return $this->fFileServerRoot;
66
 
    }
67
 
 
68
 
    function GetPathOrca()
69
 
    {
70
 
        return $this->fPathOrca;
71
 
    }
72
 
 
73
 
    function GetPathOrcaRoot()
74
 
    {
75
 
        return $this->fPathOrcaRoot;
76
 
    }
77
 
 
78
 
    function GetPathCrun()
79
 
    {
80
 
        return $this->fPathCrun;
81
 
    }
82
 
 
83
 
    function GetPathPlots()
84
 
    {
85
 
        return $this->fPathPlots;
86
 
    }
87
 
}
88
 
?>
 
 
b'\\ No newline at end of file'