mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-16 20:57:19 +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 );
|
||
|
}
|
||
|
}
|