]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/registry/class_Registry.php
Rewritten a lot double-quotes to single-requotes, removed deprecated exception, some...
[core.git] / inc / classes / main / registry / class_Registry.php
index 243c2b49f5ad44488ee5792dae58a143371d54b3..808a35a3ca2c05340c2aebf0c8d051d547e409ea 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 /**
- * A registry for several data types
+ * A registry for several data types and objects. Objects should be added by
+ * addInstance() and therefore must implement the interface Registerable.
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
@@ -62,7 +63,7 @@ class Registry extends BaseFrameworkSystem implements Register {
                if (is_null(self::$registryInstance)) {
                        // Not yet, so create one
                        self::$registryInstance = new Registry();
-               }
+               } // END - if
 
                // Return the instance
                return self::$registryInstance;
@@ -77,7 +78,7 @@ class Registry extends BaseFrameworkSystem implements Register {
         */
        public final static function isInitialized ($initialized = null) {
                // If no parameter (null by default) is provided we want to get the
-               // parameter. If set to e.g. "OK" then the registry is set to
+               // parameter. If set to e.g. 'OK' then the registry is set to
                // "initialized".
                if (is_null($initialized)) {
                        // Get status if initialized
@@ -126,7 +127,7 @@ class Registry extends BaseFrameworkSystem implements Register {
                // Is the instance there?
                if ($this->instanceExists($instanceKey)) {
                        $objectInstance = $this->instanceRegistry[$instanceKey];
-               }
+               } // END - if
 
                // Return the result
                return $objectInstance;