/** * Store the data in the database - this function will hand off the file to the * correct plugin and use that to store the data. The import plugin will not be * called again by this file. * * @param array $pStoreRow File data needed to store details in the database - sanitised and generated in the verify function * @access public * @return TRUE on success, FALSE on failure - $pStoreRow['errors'] will contain reason */ function mime_import_store(&$pStoreRow) { global $gLibertySystem; $libertyMime = new LibertyMime(); // let the correct plugin do the rest - this plugin should not be called again for this file $guid = $gLibertySystem->lookupMimeHandler($pStoreRow['upload']); if ($libertyMime->pluginStore($pStoreRow, $guid, @BitBase::verifyId($upload['attachment_id']))) { return TRUE; } else { $pStoreRow['errors'] = $libertyMime->mErrors; } }