PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wp-all-export-pro
/
src
/
App
/
Service
<?php namespace Wpae\App\Service; use Wpae\App\Repository\TemplateRepository; class TemplateManager { /** * @var TemplateRepository */ private $templateRepository; public function __construct(TemplateRepository $templateRepository) { $this->templateRepository = $templateRepository; } public function saveTemplate($params, $post) { $template = $template = new \PMXE_Template_Record(); // save template in database $template->getByName($params['template']['name'])->set(array( 'name' => $params['template']['name'], 'options' => $post ))->save(); \PMXE_Plugin::$session->set('saved_template', $template->id); } public function findTemplate($templateId) { $template = new \PMXE_Template_Record(); if ($template->getById($templateId)->isEmpty()) { throw new \Exception('Template not found'); } return $template; } }
[+]
..
[-] CategoriesService.php
[edit]
[+]
Pro
[-] CombineFields.php
[edit]
[-] SnippetParser.php
[edit]
[-] ExportGoogleMerchantsFactory.php
[edit]
[+]
License
[-] ExportGoogleMerchants.php
[edit]
[-] GoogleMerchantsDataProcessor.php
[edit]
[-] ScheduledExport.php
[edit]
[-] TemplateManager.php
[edit]
[-] WooCommerceVersion.php
[edit]
[+]
VariationOptions
[+]
Addons