PluginProbe ʕ •ᴥ•ʔ
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel / trunk
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel vtrunk
trunk 0.9.0 0.9.1 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.2.1 1.2.10 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.14 1.4.15 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0
wp-all-export / classes / CdataStrategyFactory.php
wp-all-export / classes Last commit date
partner-discount-sdk 2 months ago CdataStrategy.php 2 months ago CdataStrategyAlways.php 2 months ago CdataStrategyFactory.php 2 months ago CdataStrategyIllegalCharacters.php 2 months ago CdataStrategyIllegalCharactersHtmlEntities.php 2 months ago CdataStrategyNever.php 2 months ago XMLWriter.php 2 months ago chunk.php 2 months ago config.php 3 years ago download.php 2 months ago handler.php 2 months ago helper.php 2 months ago input.php 2 months ago installer.php 2 months ago session.php 11 years ago wpallimport.php 2 months ago zip.php 4 years ago
CdataStrategyFactory.php
23 lines
1 <?php
2
3 // phpcs:ignoreFile WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound,WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound,WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- legitimate plugin prefixes (pmxe/PMXE/wpae/Wpae/wp_all_export/wpallexport/XmlExport/CdataStrategy/VariableProductTitle/Soflyy/GF_Export); Plugin Check does not honor phpcs.xml prefix declaration
4 require_once(__DIR__.'/CdataStrategyAlways.php');
5 require_once(__DIR__.'/CdataStrategyIllegalCharacters.php');
6 require_once(__DIR__.'/CdataStrategyNever.php');
7
8
9 class CdataStrategyFactory
10 {
11 public function create_strategy($strategy) {
12
13 if($strategy == 'all') {
14 return new CdataStrategyAlways();
15 } else if($strategy == 'never') {
16 return new CdataStrategyNever();
17 } else if($strategy == 'auto') {
18 return new CdataStrategyIllegalCharacters();
19 } else {
20 return new CdataStrategyIllegalCharacters();
21 }
22 }
23 }