Move dynamic segments from Premium plugin

[MAILPOET-2382]
This commit is contained in:
Jan Jakeš
2019-10-03 09:37:46 +02:00
committed by Jack Kitterhing
parent 0af9f09f50
commit 70a89b7939
41 changed files with 2674 additions and 0 deletions

View File

@ -0,0 +1,17 @@
<?php
namespace MailPoet\Premium\DynamicSegments\FreePluginConnectors;
use MailPoet\Listing\Handler;
use MailPoet\Models\Segment;
use MailPoet\Premium\Models\DynamicSegment;
class SubscribersListingsHandlerFactory {
function get(Segment $segment, $data) {
if ($segment->type === DynamicSegment::TYPE_DYNAMIC) {
$listing = new Handler();
return $listing_data = $listing->get('\MailPoet\Premium\Models\SubscribersInDynamicSegment', $data);
}
}
}