public
Description: Midgard Components Framework 3rd generation
Homepage: http://www.midgard-project.org
Clone URL: git://github.com/bergie/midcom.git
Missing methods to configuration service interface
bergie (author)
Thu Jun 26 01:52:18 -0700 2008
commit  a214b0c8c9ffa86cd01ff511f564d826d94de12b
tree    7806fdcce172e84d64f9ebe936051c035c54a878
parent  31b430ff7ffe2c7710cb5ca0658db9970e8e40c8
...
21
22
23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
25
26
...
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
0
@@ -21,6 +21,36 @@ interface midcom_core_services_configuration
0
     public function __construct($component);
0
 
0
     /**
0
+ * Retrieve a configuration key
0
+ *
0
+ * If $key exists in the configuration data, its value is returned to the caller.
0
+ * If the value does not exist, an exception will be raised.
0
+ *
0
+ * @param string $key The configuration key to query.
0
+ * @return mixed Its value
0
+ * @see midcom_helper_configuration::exists()
0
+ */
0
+ public function get($key, $subkey=false);
0
+
0
+ /**
0
+ * @see midcom_helper_configuration::get()
0
+ */
0
+ public function __get($key);
0
+
0
+ /**
0
+ * Checks for the existence of a configuration key.
0
+ *
0
+ * @param string $key The configuration key to check for.
0
+ * @return boolean True, if the key is available, false otherwise.
0
+ */
0
+ public function exists($key);
0
+
0
+ /**
0
+ * @see midcom_helper_configuration::exists()
0
+ */
0
+ public function __isset($key);
0
+
0
+ /**
0
      * Parses configuration string and returns it in configuration array format
0
      *
0
      * @param string $configuration Configuration string
...
185
186
187
188
 
189
190
191
...
185
186
187
 
188
189
190
191
0
@@ -185,7 +185,7 @@ class midcom_core_services_dispatcher_midgard implements midcom_core_services_di
0
         if (!$this->route_matches($route_id_map))
0
         {
0
             // TODO: Check message
0
- throw new midcom_exception_notfound('No route matches');
0
+ throw new midcom_exception_notfound('No route matches current URL');
0
         }
0
         unset($route_id_map);
0
 

Comments

    No one has commented yet.