]>
src.bluestatic.org Git - viewsvn.git/blob - includes/ApplicationController.php
2 /*=====================================================================*\
3 || ###################################################################
4 || # ViewSVN [#]version[#]
5 || # Copyright ©2002-[#]year[#] Iris Studios, Inc.
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.
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
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 \*=====================================================================*/
23 * ApplicationController
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.
29 * @author Iris Studios, Inc.
30 * @copyright Copyright ©2002 - [#]year[#], Iris Studios, Inc.
35 class ApplicationController
44 * Subversion binary path
61 // ###################################################################
63 * Constructor: setup fields
65 * @param string SVN binary path
66 * @param string Repository path
68 public function __construct($binaryPath, $reposPath)
70 $this->isso
= new ISSO
;
72 $this->reposPath
= $this->isso
->fetch_sourcepath($reposPath);
73 $this->binaryPath
= $binaryPath;
76 // ###################################################################
78 * Returns the repository path ($reposPath) variable
80 * @return string The active repository path
82 public function getRepositoryPath()
84 return $this->reposPath
;
87 // ###################################################################
89 * Returns the SVN binary path ($binaryPath)
91 * @return string The binary path to SVN
93 public function getSvnPath()
95 return $this->binaryPath
;
99 /*=====================================================================*\
100 || ###################################################################
103 || ###################################################################
104 \*=====================================================================*/