/** * @see \wcf\system\SingletonFactory::init() */ protected function init() { $this->cache = array('objectTypes' => array(), 'objectTypeNames' => array()); $cache = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.label.object'); foreach ($cache as $objectType) { $this->cache['objectTypes'][$objectType->objectTypeID] = $objectType; $this->cache['objectTypeNames'][$objectType->objectType] = $objectType->objectTypeID; } $this->labelGroups = LabelCacheBuilder::getInstance()->getData(); }
/** * @see \wcf\data\IEditableCachedObject::resetCache() */ public static function resetCache() { LabelCacheBuilder::getInstance()->reset(); }