- Making it so the last component in ConstructNavbar() doesn't work as a link
[viewsvn.git] / includes / ApplicationController.php
1 <?php
2 /*=====================================================================*\
3 || ###################################################################
4 || # ViewSVN [#]version[#]
5 || # Copyright ©2002-[#]year[#] Iris Studios, Inc.
6 || #
7 || # This program is free software; you can redistribute it and/or modify
8 || # it under the terms of the GNU General Public License as published by
9 || # the Free Software Foundation; version [#]gpl[#] of the License.
10 || #
11 || # This program is distributed in the hope that it will be useful, but
12 || # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 || # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 || # more details.
15 || #
16 || # You should have received a copy of the GNU General Public License along
17 || # with this program; if not, write to the Free Software Foundation, Inc.,
18 || # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 || ###################################################################
20 \*=====================================================================*/
21
22 /**
23 * ApplicationController
24 *
25 * This is the main class that is responsible for routing requests, storing
26 * common variables, and managing the backend of the application. It does
27 * not, however, deal in processing data.
28 *
29 * @author Iris Studios, Inc.
30 * @copyright Copyright ©2002 - [#]year[#], Iris Studios, Inc.
31 * @version $Revision$
32 * @package ViewSVN
33 *
34 */
35 class ApplicationController
36 {
37 /**
38 * ISSO instance
39 * @var object
40 */
41 private $isso;
42
43 /**
44 * Subversion binary path
45 * @var string
46 */
47 private $binaryPath;
48
49 /**
50 * Repository name
51 * @var string
52 */
53 private $reposName;
54
55 /**
56 * Repository path
57 * @var string
58 */
59 private $reposPath;
60
61 // ###################################################################
62 /**
63 * Constructor: setup fields
64 *
65 * @param string SVN binary path
66 * @param string Repository path
67 */
68 public function __construct($binaryPath, $reposPath)
69 {
70 $this->isso = new ISSO;
71
72 $this->reposPath = $this->isso->fetch_sourcepath($reposPath);
73 $this->binaryPath = $binaryPath;
74 }
75
76 // ###################################################################
77 /**
78 * Returns the repository path ($reposPath) variable
79 *
80 * @return string The active repository path
81 */
82 public function getRepositoryPath()
83 {
84 return $this->reposPath;
85 }
86
87 // ###################################################################
88 /**
89 * Returns the SVN binary path ($binaryPath)
90 *
91 * @return string The binary path to SVN
92 */
93 public function getSvnPath()
94 {
95 return $this->binaryPath;
96 }
97 }
98
99 /*=====================================================================*\
100 || ###################################################################
101 || # $HeadURL$
102 || # $Id$
103 || ###################################################################
104 \*=====================================================================*/
105 ?>