/** * Returns tag hit count. Used for _getMaxHit array mapping * * @param oxTag $oTag tag object * * @return int */ protected function _getTagHitCount($oTag) { return $oTag->getHitCount(); }
/** * Compares two tags by hit count * * @param oxTag $oTag1 tag to compare * @param oxTag $oTag2 tag to compare * * @return int < 0 if tag1 is less than tag2; > 0 if tag1 is greater than tag2, and 0 if they are equal. */ protected function _tagHitsCmp($oTag1, $oTag2) { return $oTag2->getHitCount() - $oTag1->getHitCount(); }