]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/tags/package/class_PackageTags.php
Introduced new factory for object type registries, added a very simple way to get...
[hub.git] / application / hub / main / tags / package / class_PackageTags.php
index 8b2ea3501c0750236a63fa763d5587b261cbe898..27b2a0588c43f1a085cdf1d8b035f36f6b01a8ed 100644 (file)
@@ -118,7 +118,7 @@ class PackageTags extends BaseTags implements Tagable {
         */
        private function verifyAllTags () {
                // Get the registry
-               $objectRegistryInstance = ObjectFactory::createObjectByConfiguredName('node_object_type_registry_class');
+               $objectRegistryInstance = ObjectTypeRegistryFactory::createObjectTypeRegistryInstance();
 
                // "Walk" over all tags
                foreach ($this->getTags() as $tag) {
@@ -126,7 +126,7 @@ class PackageTags extends BaseTags implements Tagable {
                        self::createDebugInstance(__CLASS__)->debugOutput('TAGS: Validating tag ' . $tag . ' ...');
 
                        // Get an array from this tag
-                       $entry = $objectRegistryInstance->getArrayFromKey($tag);
+                       $entry = $objectRegistryInstance->getArrayFromKey(XmlObjectRegistryTemplateEngine::OBJECT_TYPE_DATA_NAME, $tag);
 
                        // If the array is empty, the entry is invalid!
                        if (count($entry) == 0) {
@@ -135,8 +135,8 @@ class PackageTags extends BaseTags implements Tagable {
                        } // END - if
 
                        // Now save the last discovered protocol/recipient type
-                       $this->lastProtocol      = $entry['object-protocol'];
-                       $this->lastRecipientType = $entry['object-recipient-type'];
+                       $this->lastProtocol      = $entry[XmlObjectRegistryTemplateEngine::OBJECT_TYPE_DATA_PROTOCOL];
+                       $this->lastRecipientType = $entry[XmlObjectRegistryTemplateEngine::OBJECT_TYPE_DATA_RECIPIENT_TYPE];
                } // END - foreach
        }