PortableInfobox/services/Parser/Nodes/NodeFooter.php
2015-06-11 14:51:54 +02:00

21 lines
394 B
PHP

<?php
namespace Wikia\PortableInfobox\Parser\Nodes;
class NodeFooter extends Node {
public function getData() {
if ( !isset( $this->data ) ) {
$this->data = [ 'value' => $this->getInnerValue( $this->xmlNode ) ];
}
return $this->data;
}
public function isEmpty() {
$data = $this->getData();
$links = trim( $data[ 'value' ] );
return empty( $links ) && $links != '0';
}
}