Location: PHPKode > projects > Top Music module > Top Music 3.0.7/html/modules/topMusic/admin/lib/com/sergids/topmusic/model/AlbumAdminBiz.php
<?php
class AlbumAdminBiz{
  function deletePhoto($idalbum,$albumDAO,$currentlang,$modulename,$which){
  	$album=$albumDAO->getAlbum($idalbum,$currentlang);
  	$photoname=$album->{"get".$which."coverFile"}();
  	if(@unlink("modules/".$modulename."/photos/albums/".$photoname)){
  		$album->{"set".$which."cover_file"}("");
  		$albumDAO->updateAlbum($album,$currentlang);
  		return true;
  	}else{
  		return false;
  	}
  }
}
?>
Return current item: Top Music module