/** * Insert a DAM record directly without the usage of TCE. * Shouldn't be used except you know what you do. * Following fields will be initialized if not set in the array: pid, crdate, tstamp * * @param array $meta Meta data record as array * @return integer Record uid */ function insertRecordRaw($meta) { $meta = tx_dam_db::setMetaDefaultFields($meta); $meta = tx_dam_db::cleanupRecordArray('tx_dam', $meta); $res = $GLOBALS['TYPO3_DB']->exec_INSERTquery('tx_dam', $meta); $id = $GLOBALS['TYPO3_DB']->sql_insert_id($res); return $id; }