コード例 #1
0
ファイル: AdHandler.class.php プロジェクト: nick-strohm/WCF
 /**
  * @see	\wcf\system\SingletonFactory::init()
  */
 protected function init()
 {
     $this->ads = AdCacheBuilder::getInstance()->getData();
     $this->objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.adLocation');
 }
コード例 #2
0
ファイル: AdEditor.class.php プロジェクト: nick-strohm/WCF
 /**
  * @see	\wcf\data\IEditableCachedObject::resetCache()
  */
 public static function resetCache()
 {
     AdCacheBuilder::getInstance()->reset();
     ConditionCacheBuilder::getInstance()->reset(array('definitionID' => ObjectTypeCache::getInstance()->getDefinitionByName('com.woltlab.wcf.condition.ad')->definitionID));
 }