Exemplo n.º 1
0
 /**
  * @see	\wcf\system\SingletonFactory::init()
  */
 protected function init()
 {
     // get smiley cache
     $this->cachedSmilies = SmileyCacheBuilder::getInstance()->getData(array(), 'smilies');
     $smileyCategories = CategoryHandler::getInstance()->getCategories('com.woltlab.wcf.bbcode.smiley');
     $this->cachedCategories[null] = new SmileyCategory(new Category(null, array('categoryID' => null, 'parentCategoryID' => 0, 'title' => 'wcf.acp.smiley.categoryID.default', 'description' => '', 'showOrder' => -1, 'isDisabled' => 0)));
     foreach ($smileyCategories as $key => $smileyCategory) {
         $this->cachedCategories[$key] = new SmileyCategory($smileyCategory);
     }
 }
Exemplo n.º 2
0
 /**
  * @see	\wcf\system\category\ICategoryType::afterDeletion()
  */
 public function afterDeletion(CategoryEditor $categoryEditor)
 {
     SmileyCacheBuilder::getInstance()->reset();
 }
Exemplo n.º 3
0
 /**
  * @see	\wcf\data\IEditableCachedObject::resetCache()
  */
 public static function resetCache()
 {
     SmileyCacheBuilder::getInstance()->reset();
 }