CC-1799 Put Airtime Storage into a Human Readable File Naming Convention
seems mutagen needs everything cast as a string, or one field. Was throwing an exception with no message not sure.
This commit is contained in:
parent
a05b02b0dc
commit
5b26f34033
4 changed files with 42 additions and 13 deletions
|
@ -190,6 +190,27 @@ class StoredFile {
|
|||
return $md;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get metadata as array, indexed by the constant names.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getMetadata()
|
||||
{
|
||||
$c = get_defined_constants(true);
|
||||
$md = array();
|
||||
|
||||
foreach ($c['user'] as $constant => $value) {
|
||||
if (preg_match('/^MDATA_KEY/', $constant)) {
|
||||
if (isset($this->_dbMD[$value])) {
|
||||
$md[$constant] = $this->getDbColMetadataValue($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $md;
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete and insert media file
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue