- Database cleanup uses Models

- Formatted code as per Marco's comments
This commit is contained in:
Vlad
2015-08-12 22:48:42 +00:00
parent 9402074bed
commit c5f67cb371
5 changed files with 26 additions and 27 deletions

View File

@ -1,13 +1,11 @@
<?php
namespace MailPoet\Models;
if (!defined('ABSPATH')) {
exit;
}
if (!defined('ABSPATH')) exit;
class Model extends \Sudzy\ValidModel {
function __construct() {
$customValidator = new CustomValidator();
parent::__construct($customValidator->init());
$customValidators = new CustomValidator();
parent::__construct($customValidators->init());
}
}

View File

@ -1,9 +1,7 @@
<?php
namespace MailPoet\Models;
if (!defined('ABSPATH')) {
exit;
}
if (!defined('ABSPATH')) exit;
class Setting extends Model {
public static $_table = MP_SETTINGS_TABLE;

View File

@ -1,9 +1,7 @@
<?php
namespace MailPoet\Models;
if (!defined('ABSPATH')) {
exit;
}
if (!defined('ABSPATH')) exit;
class Subscriber extends Model {
public static $_table = MP_SUBSCRIBERS_TABLE;