|
@@ 1108-1121 (lines=14) @@
|
| 1105 |
|
return []; |
| 1106 |
|
} |
| 1107 |
|
|
| 1108 |
|
protected function stringStringHandler($parent, $k, $v, $fn) |
| 1109 |
|
{ |
| 1110 |
|
if (! \is_string($k) || ! \is_string($v)) { |
| 1111 |
|
return false; |
| 1112 |
|
} |
| 1113 |
|
|
| 1114 |
|
// The user has passed an element name and an element value: |
| 1115 |
|
// [ 'element' => 'Element content' ] |
| 1116 |
|
|
| 1117 |
|
$el = $this->createElement($k, $v); |
| 1118 |
|
$el = \call_user_func($fn, $parent, $el); |
| 1119 |
|
|
| 1120 |
|
return [ $el ]; |
| 1121 |
|
} |
| 1122 |
|
|
| 1123 |
|
protected function stringMixedHandler($parent, $k, $v, $fn, $optionals) |
| 1124 |
|
{ |
|
@@ 1163-1176 (lines=14) @@
|
| 1160 |
|
return $context; |
| 1161 |
|
} |
| 1162 |
|
|
| 1163 |
|
protected function integerStringNotXmlHandler($parent, $k, $v, $fn) |
| 1164 |
|
{ |
| 1165 |
|
if (! \is_int($k) || ! \is_string($v) || is_an_xml_string($v)) { |
| 1166 |
|
return false; |
| 1167 |
|
} |
| 1168 |
|
|
| 1169 |
|
// The user has passed a node name without a node value: |
| 1170 |
|
// [ 'element', ... ] |
| 1171 |
|
|
| 1172 |
|
$el = $this->createElement($v); |
| 1173 |
|
$el = \call_user_func($fn, $parent, $el); |
| 1174 |
|
|
| 1175 |
|
return [ $el ]; |
| 1176 |
|
} |
| 1177 |
|
|
| 1178 |
|
protected function integerXmlHandler($parent, $k, $v, $fn) |
| 1179 |
|
{ |