Use correct return value
[MAILPOET-2320]
This commit is contained in:
@@ -130,6 +130,9 @@ class Model extends \Sudzy\ValidModel {
|
|||||||
parent::__construct($validator);
|
parent::__construct($validator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return bool|static
|
||||||
|
*/
|
||||||
static function create() {
|
static function create() {
|
||||||
return parent::create();
|
return parent::create();
|
||||||
}
|
}
|
||||||
|
@@ -3,6 +3,12 @@ namespace MailPoet\Models;
|
|||||||
|
|
||||||
if (!defined('ABSPATH')) exit;
|
if (!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @property int $newsletter_id
|
||||||
|
* @property int $option_field_id
|
||||||
|
* @property string $value
|
||||||
|
* @property string $updated_at
|
||||||
|
*/
|
||||||
class NewsletterOption extends Model {
|
class NewsletterOption extends Model {
|
||||||
public static $_table = MP_NEWSLETTER_OPTION_TABLE;
|
public static $_table = MP_NEWSLETTER_OPTION_TABLE;
|
||||||
|
|
||||||
|
@@ -3,6 +3,11 @@ namespace MailPoet\Models;
|
|||||||
|
|
||||||
if (!defined('ABSPATH')) exit;
|
if (!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @property int $newsletter_id
|
||||||
|
* @property int $post_id
|
||||||
|
* @property string $updated_at
|
||||||
|
*/
|
||||||
class NewsletterPost extends Model {
|
class NewsletterPost extends Model {
|
||||||
public static $_table = MP_NEWSLETTER_POSTS_TABLE;
|
public static $_table = MP_NEWSLETTER_POSTS_TABLE;
|
||||||
|
|
||||||
|
@@ -3,6 +3,11 @@ namespace MailPoet\Models;
|
|||||||
|
|
||||||
if (!defined('ABSPATH')) exit;
|
if (!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @property int $newsletter_id
|
||||||
|
* @property int $segment_id
|
||||||
|
* @property string $updated_at
|
||||||
|
*/
|
||||||
class NewsletterSegment extends Model {
|
class NewsletterSegment extends Model {
|
||||||
public static $_table = MP_NEWSLETTER_SEGMENT_TABLE;
|
public static $_table = MP_NEWSLETTER_SEGMENT_TABLE;
|
||||||
}
|
}
|
||||||
|
@@ -3,6 +3,11 @@ namespace MailPoet\Models;
|
|||||||
|
|
||||||
if (!defined('ABSPATH')) exit;
|
if (!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @property int $newsletter_id
|
||||||
|
* @property int $subscriber_id
|
||||||
|
* @property int $queue_id
|
||||||
|
*/
|
||||||
class StatisticsOpens extends Model {
|
class StatisticsOpens extends Model {
|
||||||
public static $_table = MP_STATISTICS_OPENS_TABLE;
|
public static $_table = MP_STATISTICS_OPENS_TABLE;
|
||||||
|
|
||||||
|
@@ -3,6 +3,11 @@ namespace MailPoet\Models;
|
|||||||
|
|
||||||
if (!defined('ABSPATH')) exit;
|
if (!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @property int $newsletter_id
|
||||||
|
* @property int $subscriber_id
|
||||||
|
* @property int $queue_id
|
||||||
|
*/
|
||||||
class StatisticsUnsubscribes extends Model {
|
class StatisticsUnsubscribes extends Model {
|
||||||
public static $_table = MP_STATISTICS_UNSUBSCRIBES_TABLE;
|
public static $_table = MP_STATISTICS_UNSUBSCRIBES_TABLE;
|
||||||
|
|
||||||
|
@@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
namespace MailPoet\Models;
|
namespace MailPoet\Models;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @property int $newsletter_id
|
||||||
|
* @property int $task_id
|
||||||
|
* @property string $updated_at
|
||||||
|
*/
|
||||||
class StatsNotification extends Model {
|
class StatsNotification extends Model {
|
||||||
public static $_table = MP_STATS_NOTIFICATIONS_TABLE;
|
public static $_table = MP_STATS_NOTIFICATIONS_TABLE;
|
||||||
|
|
||||||
|
@@ -3,6 +3,9 @@ namespace MailPoet\Models;
|
|||||||
|
|
||||||
if (!defined('ABSPATH')) exit;
|
if (!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @property string $ip
|
||||||
|
*/
|
||||||
class SubscriberIP extends Model {
|
class SubscriberIP extends Model {
|
||||||
public static $_table = MP_SUBSCRIBER_IPS_TABLE;
|
public static $_table = MP_SUBSCRIBER_IPS_TABLE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user