Location: PHPKode > projects > Top Music module > Top Music 3.0.7/html/modules/topMusic/lib/com/sergids/topmusic/model/AlbumOO.php
<?php
class AlbumOO {
	/**
	 * deprecated
	 */
//	function recalculateAverage(& $albumO, $rate) {
//		(float) $oldavgvotes = 0.0000;
//		$oldnvotes = $albumO->getNvotes();
//		$oldavgvotes = $albumO->getAvgvotes();
//		$nvotes = $oldnvotes +1;
//		$sum = 0;
//		for ($i = 0; $i < $oldnvotes; $i ++) {
//			$sum += $oldavgvotes;
//		}
//		$sum += $rate;
//		$avgvotes = $sum / $nvotes;
//		$albumO->setAvgvotes($avgvotes);
//		$albumO->setNvotes($nvotes);
//	}
}
?>

Return current item: Top Music module