PortableInfobox/services/Parser/Nodes/NodeNavigation.php

21 lines
398 B
PHP
Raw Normal View History

<?php
namespace Wikia\PortableInfobox\Parser\Nodes;
class NodeNavigation extends Node {
public function getData() {
if ( !isset( $this->data ) ) {
2015-06-11 12:51:54 +00:00
$this->data = [ 'value' => $this->getInnerValue( $this->xmlNode ) ];
}
return $this->data;
}
public function isEmpty() {
$data = $this->getData();
$links = trim( $data[ 'value' ] );
2015-05-20 14:57:43 +00:00
return empty( $links ) && $links != '0';
}
}