/** * @see \wcf\page\IPage::readData() */ public function readData() { parent::readData(); $sql = "SELECT\tCOUNT(*)\n\t\t\tFROM\twcf" . WCF_N . "_tag"; $statement = \wcf\system\WCF::getDB()->prepareStatement($sql); $statement->execute(); $this->tagCount = $statement->fetchColumn(); }
/** * @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)); }