PortableInfobox/services/Parser/Nodes/NodeFooter.php
2015-05-19 11:20:44 -07:00

17 lines
388 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 );
}
}