PluginProbe ʕ •ᴥ•ʔ
WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets / 4.1.1
WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets v4.1.1
4.1.1 3.9.5 3.9.6 4.0.0 4.0.1 4.1.0 trunk 2.12 2.13 2.14 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 3.4.9 3.5.0 3.5.1 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.5.7 3.5.8 3.5.9 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.6.8 3.6.9 3.7.0 3.7.1 3.7.2 3.7.3 3.7.3-beta-1.0 3.7.4 3.7.4-beta-1.0 3.7.5 3.7.6 3.7.7 3.7.8 3.7.9 3.8.0 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4
wp-all-import / libraries / ast / XmlImportAstText.php
wp-all-import / libraries / ast Last commit date
XmlImportAstElseif.php 1 month ago XmlImportAstExpression.php 1 month ago XmlImportAstFloat.php 1 month ago XmlImportAstForeach.php 1 month ago XmlImportAstFunction.php 1 month ago XmlImportAstIf.php 1 month ago XmlImportAstInteger.php 1 month ago XmlImportAstLiteral.php 1 month ago XmlImportAstMath.php 1 month ago XmlImportAstPrint.php 1 month ago XmlImportAstSequence.php 1 month ago XmlImportAstSpintax.php 1 month ago XmlImportAstStatement.php 1 month ago XmlImportAstString.php 1 month ago XmlImportAstText.php 1 month ago XmlImportAstWith.php 1 month ago XmlImportAstXPath.php 1 month ago XmlImportAstXpathClause.php 1 month ago
XmlImportAstText.php
61 lines
1 <?php
2 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals
3 /**
4 * @author Olexandr Zanichkovsky <olexandr.zanichkovsky@zophiatech.com>
5 * @package AST
6 */
7
8 require_once dirname(__FILE__) . '/XmlImportAstStatement.php';
9
10 /**
11 * Represents a text
12 */
13 class XmlImportAstText extends XmlImportAstStatement
14 {
15 /**
16 * Value of a text node
17 *
18 * @var string
19 */
20 private $value;
21
22 /**
23 * Creates new instance
24 *
25 * @param string $value
26 */
27 public function __construct($value)
28 {
29 $this->value = $value;
30 }
31
32 /**
33 * Gets value of a text node
34 *
35 * @return string
36 */
37 public function getValue()
38 {
39 return $this->value;
40 }
41
42 /**
43 * String representation of the node
44 *
45 * @return string
46 */
47 public function __toString()
48 {
49 $result = "--> begin " . get_class($this) . "\n";
50 $array = explode("\n", trim($this->getValue()));
51 for ($i = 0; $i < count($array); $i++)
52 {
53 $array[$i] = ' ' . $array[$i];
54 }
55 $result .= implode("\n", $array) . "\n";
56 $result .= "--> end " . get_class($this);
57
58 return $result;
59 }
60 }
61