Location: PHPKode > projects > Top Music module > Top Music 3.0.7/html/modules/topMusic/admin/lib/com/sergids/topmusic/model/ArtistAdminBiz.php
<?php
class ArtistAdminBiz{
	function deletePhoto($idartist,$artistDAO,$currentlang,$modulename){
		$artist=$artistDAO->getArtist($idartist,$currentlang);
		$photoname=$artist->getPhotoFile();
		@unlink("modules/".$modulename."/photos/".$photoname);
		$artist->photo_file="";
		$artistDAO->updateArtist($artist,$currentlang);
	}
	function searchMatches($artistDAO,$text){
		$artistList=$artistDAO->getSelectList();
		foreach($artistList as $artist){
			$text=ereg_replace($artist[1],"<a href=\"modules.php?name=topMusic&op=artist&idartist=".$artist[0]."\">".$artist[1]."</a>", $text);
		}
		return $text;
	}
}
?>
Return current item: Top Music module