Documentation is available at RSDEngineControllerFile.php
1 <?php
2 // RSDEngine: The Rapid and Secure Development Engine
3 // Copyright (C) 2003 Lukas Feiler
4 //
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License, or (at your option) any later version.
9 //
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
19 /**Contains just the class RSDEngineControllerFile.
20 *
21 * @package RSDEngine
22 * @author Lukas Feiler <lukas.feiler@chello.at>
23 * @copyright Lukas Feiler 2003
24 * @filesource
25 */
26
27 /**RSDEngineControllerFile extends RSDEngineFile.
28 */
29 require_once('RSDEngine/RSDEngineFile.php');
30
31 /**Helper class for creating template files.
32 *
33 * @author Lukas Feiler <lukas.feiler@chello.at>
34 * @version 0.1.9
35 * @copyright Lukas Feiler 2003
36 * @package RSDEngine
37 */
38 class RSDEngineControllerFile extends RSDEngineFile {
39
40 /**Constructor that does the initialization.
41 *
42 * @see config
43 * @see filename
44 * @see code
45 * @see dir
46 *
47 * @param Array $config An associative array containing all configuration options.
48 * @param String $filename The name of the file to create.
49 * Passing this argument makes only sense if the method getFilename
50 * does not get overwritten. This argument is optional. The default is false.
51 * @param String $code The code of the file to create.
52 * Passing this argument makes only sense if the method getCode
53 * does not get overwritten. This argument is optional. The default is false.
54 */
55 function RSDEngineControllerFile(&$config, $filename = false, $code = false)
56 {
57 RSDEngineFile::RSDEngineFile($config, $filename, $code);
58 if($config['overwrite_controllers']){
59 $this->overwriteExisting = true;
60 }
61 }
62 }
63 ?>
Documentation generated on Mon, 8 Dec 2003 13:10:45 +0100 by phpDocumentor 1.2.3