Subscribers limit

- added "limit.html" template
- subscribers_limit set in Env class
This commit is contained in:
Jonathan Labreuille
2016-09-09 16:12:59 +02:00
parent 3dd5ac0536
commit f436088a16
6 changed files with 86 additions and 2 deletions

View File

@ -624,6 +624,13 @@ class Subscriber extends Model {
);
}
static function getTotalSubscribers() {
return self::whereIn('status', array(
self::STATUS_SUBSCRIBED,
self::STATUS_UNCONFIRMED
))->count();
}
static function bulkTrash($orm) {
$count = parent::bulkAction($orm, function($subscriber_ids) {
self::rawExecute(join(' ', array(