From cab7a6c93030beda068900ef1d69d34cd97b06d5 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg <rudi.grinberg@sourcefabric.org> Date: Mon, 27 Aug 2012 14:07:05 -0400 Subject: [PATCH] cc-3936: added comment documenting metadata translation --- airtime_mvc/application/models/StoredFile.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/airtime_mvc/application/models/StoredFile.php b/airtime_mvc/application/models/StoredFile.php index 0052d1160..70c804c92 100644 --- a/airtime_mvc/application/models/StoredFile.php +++ b/airtime_mvc/application/models/StoredFile.php @@ -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;