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