From 89c2daf5e6f80ace34426c4bd074e1e2a8fa73d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 10 Mar 2009 23:06:19 +0000 Subject: [PATCH] Removed method re-added. Warning added to config-hubmaster.php --- inc/config/class_FrameworkConfiguration.php | 13 +++++++++++++ inc/config/config-hubmaster.php | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/inc/config/class_FrameworkConfiguration.php b/inc/config/class_FrameworkConfiguration.php index 28f0c0a6..e9610ed2 100644 --- a/inc/config/class_FrameworkConfiguration.php +++ b/inc/config/class_FrameworkConfiguration.php @@ -231,6 +231,8 @@ class FrameworkConfiguration implements Registerable { /** * Detect safely the script path without trailing slash which is the glue * between "http://your-domain.invalid/" and "script-name.php" + * + * @return $scriptPath The script path extracted from $_SERVER['SCRIPT_NAME'] */ public function detectScriptPath () { // Default is empty @@ -245,6 +247,17 @@ class FrameworkConfiguration implements Registerable { // Return it return $scriptPath; } + + /** + * Getter for field name + * + * @param $fieldName Field name which we shall get + * @return $fieldValue Field value from the user + * @throws NullPointerException If the result instance is null + */ + public final function getField ($fieldName) { + // Our super interface "FrameworkInterface" requires this + } } // [EOF] diff --git a/inc/config/config-hubmaster.php b/inc/config/config-hubmaster.php index 5f24383e..a47854b5 100644 --- a/inc/config/config-hubmaster.php +++ b/inc/config/config-hubmaster.php @@ -21,6 +21,10 @@ * along with this program. If not, see . */ +/////////////////////////////////////////////////////////////////////////////// +/// DO NOT RELY ON THIS CONFIG ENTRIES! THEY ARE SUBJECT OF BEING REPLACED. /// +/////////////////////////////////////////////////////////////////////////////// + // Get the configuration instance $cfg = FrameworkConfiguration::getInstance(); -- 2.39.5