mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-16 12:35:31 +00:00
18 lines
392 B
PHP
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 );
|
|
}
|
|
}
|