47 if ($sourceData ===
null) {
50 if ($sourceData instanceof
Element) {
51 $this->
setXml($sourceData);
52 }
elseif (is_string($sourceData) && !empty($sourceData)) {
53 if (strlen($sourceData) < 1000 &&
is_readable($sourceData)) {
104 if (!(
$result = @$xml->xpath($xpath))) {
118 return $this->
getNode()->asNiceXml(
'',
false);
147 if (!empty($string)) {
148 $xml = simplexml_load_string($string, $this->_elementClass);
165 $xml = simplexml_import_dom($dom, $this->_elementClass);
195 $targets = $this->
getXpath($this->_xpathExtends);
199 foreach ($targets as
$target) {
200 $sources = $this->
getXpath((
string)$target[
'extends']);
202 foreach ($sources as
$source) {
elseif(isset( $params[ 'redirect_parent']))
__construct($sourceData=null)
extend(Config $config, $overwrite=true)
setNode($path, $value, $overwrite=true)