コード例 #1
0
 /**
  * @see	\wcf\page\IPage::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     $commentableContents = \wcf\data\object\type\ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.comment.commentableContent');
     $commentObjectTypeIDs = array();
     foreach ($commentableContents as $objectType) {
         $commentObjectTypeIDs[$objectType->objectTypeID] = $objectType->objectType;
     }
     \wcf\system\WCF::getTPL()->assign(array('commentObjectTypeIDs' => $commentObjectTypeIDs));
 }
コード例 #2
0
 /**
  * @see	\wcf\page\IPage::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     \wcf\system\WCF::getTPL()->assign('tagCount', $this->tagCount);
 }