PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / trunk
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! vtrunk
3.8.0 3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 All 112 releases
templately / modules / ai-content-merger / module.php

module.php in Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! trunk, at modules/ai-content-merger/module.php

30 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * AI-content-merger module (spec 022-ai-content-merger).
4 *
5 * Platform-aware AI content merging: the AIContentHelper class (flatten-by-id, unicode
6 * normalization, Elementor/Gutenberg dot-notation content merging, HTML class-based
7 * replacement). Relocated from includes/Core/Importer/Utils/AIContentHelper.php.
8 *
9 * PHP-only, no REST routes, no JS. Per spec 022 FR-011 this is a STANDALONE class of pure
10 * static merge logic with ZERO cross-module dependencies — the public entry point is the
11 * static merge($payload, $template, $platform) dispatcher, consumed by FSI's
12 * Runners/Finalizer. The session/path resolution + file IO that used to live here as
13 * host-state instance methods (generateAiFilePaths, isAiContent, processAiContent,
14 * writeDebugFile, …) is now the consumer's responsibility, breaking the former
15 * full-site-import ↔ ai-content-merger dependency cycle.
16 *
17 * @package Templately
18 */
19
20 namespace Templately\Modules\AiContentMerger;
21
22 use Templately\Core\Module_Base;
23
24 class Module extends Module_Base {
25
26 public function get_name(): string {
27 return 'ai-content-merger';
28 }
29 }
30