コード例 #1
0
ファイル: SmileyCache.class.php プロジェクト: nick-strohm/WCF
 /**
  * @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);
     }
 }
コード例 #2
0
 /**
  * @see	\wcf\system\category\ICategoryType::afterDeletion()
  */
 public function afterDeletion(CategoryEditor $categoryEditor)
 {
     SmileyCacheBuilder::getInstance()->reset();
 }
コード例 #3
0
 /**
  * @see	\wcf\data\IEditableCachedObject::resetCache()
  */
 public static function resetCache()
 {
     SmileyCacheBuilder::getInstance()->reset();
 }