Exemple #1
0
 /**
  *
  * @param Pimcore_Model_WebResource_Interface $target
  * @return integer
  */
 public static function getRatingAmountForTarget($target)
 {
     $type = self::getTypeFromTarget($target);
     $rating = new RatingsComments();
     $rating->setTarget($target);
     $rating->setType($type);
     return $rating->getRatingAmountForTarget();
 }