PortableInfobox/services/Parser/Nodes/NodeFooter.php
2015-05-20 14:57:43 +00:00

17 lines
405 B
PHP

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