PortableInfobox/services/Parser/Nodes/NodeFooter.php

17 lines
405 B
PHP
Raw Normal View History

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