Import the MP2 users lists
Import the MP2 users Add the table "imported_data_mapping" Add the function Helpers::mysql_date
This commit is contained in:
15
lib/Models/ImportedDataMapping.php
Normal file
15
lib/Models/ImportedDataMapping.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?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();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user