Ejemplo n.º 1
0
 /**
  * Performs a batch insert
  *
  * @see OA_Dal::batchInsert()
  *
  * @param string $tableNameUnquoted The unquoted table name (including prefix, see _getTablenameUnquoted)
  * @param array  $data              The array of data to be inserted
  * @param array  $fields            The array of unquoted field names
  */
 function batchInsert($tableNameUnquoted, $data, $fields)
 {
     $result = OA_Dal::batchInsert($tableNameUnquoted, $fields, $data);
     if (PEAR::isError($result)) {
         Max::raiseError($result->getMessage(), PEAR_ERROR_DIE);
     }
     OA::debug('Inserted ' . $result . ' rows in the table ' . $tableNameUnquoted, PEAR_LOG_INFO);
 }