PortableInfobox/services/Parser/Nodes/NodeFooter.php
2015-04-28 09:00:26 +02:00

18 lines
392 B
PHP

<?php
namespace Wikia\PortableInfobox\Parser\Nodes;
class NodeFooter extends Node {
const LINKS_TAG_NAME = 'links';
public function getData() {
$data = [];
$data['links'] = $this->parseWithExternalParser( (string) $this->xmlNode->{self::LINKS_TAG_NAME}, true );
return $data;
}
public function isEmpty( $data ) {
$links = trim( $data['links'] );
return empty( $links );
}
}