/** * getMetaId * * @param string $pDescription Description of meta key. e.g.: Exif, ID3, Album, Artist * @param string $pTable Table data is stored in - either 'type' or 'title' * @access public * @return meta type or title id on sucess, FALSE on failure */ function getMetaId($pDescription, $pTable = 'type') { global $gBitSystem; $ret = FALSE; if (!empty($pDescription) && ($pTable == 'type' || $pTable == 'title')) { $ret = $gBitSystem->mDb->getOne("SELECT `meta_{$pTable}_id` FROM `" . BIT_DB_PREFIX . "liberty_meta_{$pTable}s` WHERE `meta_{$pTable}` = ?", array(LibertyMime::normalizeMetaDescription($pDescription))); } return $ret; }