1: <?php
2: /**
3: * Handles the Controller setup.
4: *
5: * PHP version 5
6: *
7: * @category Kolab
8: * @package Kolab_FreeBusy
9: * @author Gunnar Wrobel <wrobel@pardus.de>
10: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
11: * @link http://pear.horde.org/index.php?package=Kolab_FreeBusy
12: */
13:
14: /**
15: * Handles the Controller setup.
16: *
17: * Copyright 2011-2012 Horde LLC (http://www.horde.org/)
18: *
19: * See the enclosed file COPYING for license information (LGPL). If you did not
20: * receive this file, see
21: * http://www.horde.org/licenses/lgpl21.
22: *
23: * @category Kolab
24: * @package Kolab_FreeBusy
25: * @author Gunnar Wrobel <wrobel@pardus.de>
26: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
27: * @link http://pear.horde.org/index.php?package=Kolab_FreeBusy
28: */
29: class Horde_Kolab_FreeBusy_Controller_RequestConfiguration
30: implements Horde_Controller_RequestConfiguration
31: {
32: /**
33: * A fixed controller class name override.
34: *
35: * @var string
36: */
37: private $_controller;
38:
39: /**
40: * A fixed settings class name override.
41: *
42: * @var string
43: */
44: private $_settings = 'Horde_Controller_SettingsExporter_Default';
45:
46: /**
47: * Set a fixed override for the controller name.
48: *
49: * @param string $settingsName The exporter class name.
50: *
51: * @return NULL
52: */
53: public function setControllerName($controllerName)
54: {
55: $this->_controller = $controllerName;
56: }
57:
58: /**
59: * Retrieve the controller name.
60: *
61: * @return string The controller class name.
62: */
63: public function getControllerName()
64: {
65: return $this->_controller;
66: }
67:
68: /**
69: * Set the exporter name.
70: *
71: * @param string $settingsName The exporter class name.
72: *
73: * @return NULL
74: */
75: public function setSettingsExporterName($settingsName)
76: {
77: $this->_settings = $settingsName;
78: }
79:
80: /**
81: * Retrieve the exporter name.
82: *
83: * @return string The exporter class name.
84: */
85: public function getSettingsExporterName()
86: {
87: return $this->_settings;
88: }
89: }
90: