Files
piratepoet/lib/Models/ImportedDataMapping.php
fred 472be3b071 Import the MP2 users lists
Import the MP2 users
Add the table "imported_data_mapping"
Add the function Helpers::mysql_date
2017-06-12 13:13:00 +02:00

15 lines
311 B
PHP

<?php
namespace MailPoet\Models;
if(!defined('ABSPATH')) exit;
class ImportedDataMapping extends Model {
public static $_table = MP_IMPORTED_DATA_MAPPING_TABLE;
static function create($data = array()) {
$relation = parent::create();
$relation->hydrate($data);
return $relation->save();
}
}