Starting work on ApplicationController
[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 * Subversion binary path
39 * @var string
40 */
41 private $binaryPath;
42
43 /**
44 * Repository name
45 * @var string
46 */
47 private $reposName;
48
49 /**
50 * Repository path
51 * @var string
52 */
53 private $reposPath;
54
55 // ###################################################################
56 /**
57 * Constructor: setup fields
58 *
59 * @param string SVN binary path
60 * @param string Repository path
61 */
62 public function __construct($binaryPath, $reposPath)
63 {
64 $this->reposPath = $reposPath;
65 $this->binaryPath = $binaryPath;
66 }
67
68 // ###################################################################
69 /**
70 * Returns the repository path ($reposPath) variable
71 *
72 * @return string The active repository path
73 */
74 public function getRepositoryPath()
75 {
76 return $this->reposPath;
77 }
78 }
79
80 /*=====================================================================*\
81 || ###################################################################
82 || # $HeadURL$
83 || # $Id$
84 || ###################################################################
85 \*=====================================================================*/
86 ?>