Michele Andreoli - 2011-08-17 08:49:00
Hi! This is a great class, very useful! but for mine necessity I made a little modify at your code, so I want to suggest you this upgrade that I think it will be useful for others users if they want to get the description of images:
In the public function "getPictures(...)" I inserted a new piece of code in the case "MEDIA:GROUP":
if ($mediakey=="MEDIA:THUMBNAIL") {
$pictures[$id]['thumbnail']=$mediavalue["attributes"]["URL"];
}
if ($mediakey=="MEDIA:TITLE") {
$pictures[$id]['title']=$mediavalue["value"];
}
/**********my modify*************/
if ($mediakey=="MEDIA:DESCRIPTION") {
$pictures[$id]['description']=$mediavalue["value"];
}
/*********************************/