PortableInfobox/services/Parser/Nodes/NodeFooter.php

25 lines
518 B
PHP
Raw Normal View History

<?php
namespace Wikia\PortableInfobox\Parser\Nodes;
use Wikia\PortableInfobox\Helpers\SimpleXmlUtil;
class NodeFooter extends Node {
public function getData() {
if ( !isset( $this->data ) ) {
$this->data = [ 'value' => $this->getExternalParser()->parseRecursive(
SimpleXmlUtil::getInstance()->getInnerXML( $this->xmlNode )
) ];
}
return $this->data;
}
public function isEmpty() {
$data = $this->getData();
$links = trim( $data[ 'value' ] );
2015-05-20 14:57:43 +00:00
return empty( $links ) && $links != '0';
}
}