cc-3936: added comment documenting metadata translation

This commit is contained in:
Rudi Grinberg 2012-08-27 14:07:05 -04:00
parent dea764b8fd
commit cab7a6c930
1 changed files with 2 additions and 0 deletions

View File

@ -122,6 +122,8 @@ class Application_Model_StoredFile
$p_md["MDATA_KEY_YEAR"] = $year;
}
# Translate metadata attributes from media monitor (MDATA_KEY_*)
# to their counterparts in constants.php (usually the column names)
foreach ($p_md as $mdConst => $mdValue) {
if (defined($mdConst)) {
$dbMd[constant($mdConst)] = $mdValue;