public static function getDescriptionFields($driver = null)
{
$map = self::getCategories();
if (!is_null($driver) && is_array($driver)) {
$driver = self::factory($driver[0], $driver[1]);
}
if ($driver instanceof Horde_Image_Exif_Base) {
$supported = $driver->supportedCategories();
} else {
$supported = array('XMP', 'IPTC', 'EXIF');
}
$fields = array();
foreach ($supported as $category) {
$fields = array_merge($fields, self::$_descriptionFields[$category]);
}
$return = array();
$all = self::getFields($driver, true);
foreach ($fields as $field) {
$return[$field] = $all[$field];
}
return $return;
}