*/
protected function init() {
// get definition cache
- CacheHandler::getInstance()->addResource('objectType-'.PACKAGE_ID, WBB_DIR.'cache/cache.objectType-'.PACKAGE_ID.'.php', 'wcf\system\cache\builder\ObjectTypeCacheBuilder');
+ CacheHandler::getInstance()->addResource('objectType-'.PACKAGE_ID, WCF_DIR.'cache/cache.objectType-'.PACKAGE_ID.'.php', 'wcf\system\cache\builder\ObjectTypeCacheBuilder');
$this->definitions = CacheHandler::getInstance()->get('objectType-'.PACKAGE_ID, 'definitions');
foreach ($this->definitions as $definition) {
$this->definitionsByName[$definition->definitionName] = $definition;
$this->groupedObjectTypes[$definition->definitionName] = array();
}
- $this->groupedObjectTypes[$definition->definitionName][$objectType->objectTypeName] = $objectType;
+ $this->groupedObjectTypes[$definition->definitionName][$objectType->objectType] = $objectType;
}
}
*/
public function getObjectTypes($definitionName) {
if (isset($this->groupedObjectTypes[$definitionName])) {
+ die('<pre>'.print_r($this->groupedObjectTypes, true));
return $this->groupedObjectTypes[$definitionName];
}