Exemplo n.º 1
0
 /**
  * Returns tag hit count. Used for _getMaxHit array mapping
  *
  * @param oxTag $oTag tag object
  *
  * @return int
  */
 protected function _getTagHitCount($oTag)
 {
     return $oTag->getHitCount();
 }
Exemplo n.º 2
0
 /**
  * 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();
 }