static function fetchRegisteredTypes() { eZWorkflowType::loadAndRegisterAllTypes(); $types = $GLOBALS["eZWorkflowTypes"]; if (is_array($types)) { foreach ($types as $typeString => $type_def) { $class_name = $type_def["class_name"]; $def =& $definition_objects[$typeString]; if (!isset($GLOBALS["eZWorkflowTypeObjects"][$typeString])) { if (class_exists($class_name)) { $GLOBALS["eZWorkflowTypeObjects"][$typeString] = new $class_name(); } else { eZDebug::writeError("Undefined event type class: {$class_name}", __METHOD__); } } } } return $GLOBALS["eZWorkflowTypeObjects"]; }