2015-04-27 14:05:31 +00:00
|
|
|
<?php
|
|
|
|
namespace Wikia\PortableInfobox\Parser\Nodes;
|
|
|
|
|
2015-06-10 09:28:33 +00:00
|
|
|
use Wikia\PortableInfobox\Helpers\SimpleXmlUtil;
|
|
|
|
|
2015-04-27 14:05:31 +00:00
|
|
|
class NodeFooter extends Node {
|
|
|
|
|
|
|
|
public function getData() {
|
2015-06-10 09:28:33 +00:00
|
|
|
if ( !isset( $this->data ) ) {
|
|
|
|
$this->data = [ 'value' => $this->getExternalParser()->parseRecursive(
|
|
|
|
SimpleXmlUtil::getInstance()->getInnerXML( $this->xmlNode )
|
|
|
|
) ];
|
|
|
|
}
|
|
|
|
|
|
|
|
return $this->data;
|
2015-04-27 14:05:31 +00:00
|
|
|
}
|
|
|
|
|
2015-06-10 09:28:33 +00:00
|
|
|
public function isEmpty() {
|
|
|
|
$data = $this->getData();
|
|
|
|
$links = trim( $data[ 'value' ] );
|
|
|
|
|
2015-05-20 14:57:43 +00:00
|
|
|
return empty( $links ) && $links != '0';
|
2015-04-27 14:05:31 +00:00
|
|
|
}
|
|
|
|
}
|