<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing namespace MailPoet\Newsletter\Editor; if (!defined('ABSPATH')) exit; class Transformer { private $transformer; public function __construct( $args ) { $titleListOnly = $args['displayType'] === 'titleOnly' && $args['titleFormat'] === 'ul'; if ($titleListOnly) $transformer = new TitleListTransformer($args); else $transformer = new PostListTransformer($args); $this->transformer = $transformer; } public function transform($posts) { return $this->transformer->transform($posts); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
LayoutHelper.php | File | 819 B | 0644 |
|
MetaInformationManager.php | File | 2.22 KB | 0644 |
|
PostContentManager.php | File | 4.82 KB | 0644 |
|
PostListTransformer.php | File | 772 B | 0644 |
|
PostTransformer.php | File | 5.13 KB | 0644 |
|
PostTransformerContentsExtractor.php | File | 7.07 KB | 0644 |
|
StructureTransformer.php | File | 3.93 KB | 0644 |
|
TitleListTransformer.php | File | 1.25 KB | 0644 |
|
Transformer.php | File | 625 B | 0644 |
|
index.php | File | 6 B | 0644 |
|