Beispiel #1
0
 /**
  * @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();
 }
Beispiel #2
0
 /**
  * @see	\wcf\data\IEditableCachedObject::resetCache()
  */
 public static function resetCache()
 {
     LabelCacheBuilder::getInstance()->reset();
 }