PluginProbe ʕ •ᴥ•ʔ
WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets / 2.13
WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets v2.13
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 14 years ago XmlImportAstExpression.php 14 years ago XmlImportAstFloat.php 14 years ago XmlImportAstForeach.php 14 years ago XmlImportAstFunction.php 14 years ago XmlImportAstIf.php 14 years ago XmlImportAstInteger.php 14 years ago XmlImportAstLiteral.php 14 years ago XmlImportAstMath.php 14 years ago XmlImportAstPrint.php 14 years ago XmlImportAstSequence.php 14 years ago XmlImportAstStatement.php 14 years ago XmlImportAstString.php 14 years ago XmlImportAstText.php 14 years ago XmlImportAstWith.php 14 years ago XmlImportAstXPath.php 14 years ago XmlImportAstXpathClause.php 14 years ago
XmlImportAstText.php
60 lines
1 <?php
2 /**
3 * @author Olexandr Zanichkovsky <olexandr.zanichkovsky@zophiatech.com>
4 * @package AST
5 */
6
7 require_once dirname(__FILE__) . '/XmlImportAstStatement.php';
8
9 /**
10 * Represents a text
11 */
12 class XmlImportAstText extends XmlImportAstStatement
13 {
14 /**
15 * Value of a text node
16 *
17 * @var string
18 */
19 private $value;
20
21 /**
22 * Creates new instance
23 *
24 * @param string $value
25 */
26 public function __construct($value)
27 {
28 $this->value = $value;
29 }
30
31 /**
32 * Gets value of a text node
33 *
34 * @return string
35 */
36 public function getValue()
37 {
38 return $this->value;
39 }
40
41 /**
42 * String representation of the node
43 *
44 * @return string
45 */
46 public function __toString()
47 {
48 $result = "--> begin " . get_class($this) . "\n";
49 $array = explode("\n", trim($this->getValue()));
50 for ($i = 0; $i < count($array); $i++)
51 {
52 $array[$i] = ' ' . $array[$i];
53 }
54 $result .= implode("\n", $array) . "\n";
55 $result .= "--> end " . get_class($this);
56
57 return $result;
58 }
59 }
60