PluginProbe ʕ •ᴥ•ʔ
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel / 1.2.4
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel v1.2.4
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
CdataStrategy.php 8 years ago CdataStrategyAlways.php 8 years ago CdataStrategyFactory.php 9 years ago CdataStrategyIllegalCharacters.php 8 years ago CdataStrategyIllegalCharactersHtmlEntities.php 8 years ago CdataStrategyNever.php 8 years ago XMLWriter.php 8 years ago chunk.php 10 years ago config.php 7 years ago download.php 8 years ago handler.php 10 years ago helper.php 12 years ago input.php 7 years ago installer.php 9 years ago session.php 10 years ago wpallimport.php 6 years ago zip.php 10 years ago
CdataStrategyFactory.php
22 lines
1 <?php
2
3 require_once(__DIR__.'/CdataStrategyAlways.php');
4 require_once(__DIR__.'/CdataStrategyIllegalCharacters.php');
5 require_once(__DIR__.'/CdataStrategyNever.php');
6
7
8 class CdataStrategyFactory
9 {
10 public function create_strategy($strategy) {
11
12 if($strategy == 'all') {
13 return new CdataStrategyAlways();
14 } else if($strategy == 'never') {
15 return new CdataStrategyNever();
16 } else if($strategy == 'auto') {
17 return new CdataStrategyIllegalCharacters();
18 } else {
19 return new CdataStrategyIllegalCharacters();
20 }
21 }
22 }