<?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
if (is_null(self::$registryInstance)) {
// Not yet, so create one
self::$registryInstance = new Registry();
- }
+ } // END - if
// Return the instance
return self::$registryInstance;
*/
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
// Is the instance there?
if ($this->instanceExists($instanceKey)) {
$objectInstance = $this->instanceRegistry[$instanceKey];
- }
+ } // END - if
// Return the result
return $objectInstance;