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 / XmlImportAstElseif.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
XmlImportAstElseif.php
77 lines
1 <?php
2 /**
3 * @author Olexandr Zanichkovsky <olexandr.zanichkovsky@zophiatech.com>
4 * @package AST
5 */
6
7 /**
8 * Represents ELSEIF branch of IF clause
9 */
10 class XmlImportAstElseif
11 {
12 /**
13 * ELSEIF branch condition
14 *
15 * @var XmlImportAstExpression
16 */
17 private $condition;
18
19 /**
20 * ELSEIF branch body
21 *
22 * @var XmlImportAstSequence
23 */
24 private $body;
25
26 /**
27 * Creates new instance
28 *
29 * @param XmlImportAstExpression $condition
30 * @param XmlImportAstSequence $body
31 */
32 public function __construct(XmlImportAstExpression $condition, XmlImportAstSequence $body)
33 {
34 $this->condition = $condition;
35 $this->body = $body;
36 }
37
38 /**
39 * Gets ELSEIF branch condition
40 *
41 * @return XmlImportAstExpression
42 */
43 public function getCondition()
44 {
45 return $this->condition;
46 }
47
48 /**
49 * Gets body
50 *
51 * @return XmlImportAstSequence
52 */
53 public function getBody()
54 {
55 return $this->body;
56 }
57
58 /**
59 * String representation of an object
60 *
61 * @return string
62 */
63 public function __toString()
64 {
65 $result = " Elseif:\n";
66 $result .= ' Condition: ' . $this->condition . "\n";
67 $result .= " Body:\n";
68 $array = explode("\n", $this->body);
69 for ($i = 0; $i < count($array); $i++)
70 {
71 $array[$i] = ' ' . $array[$i];
72 }
73 $result .= implode("\n", $array) . "\n";
74 return $result;
75 }
76 }
77