PortableInfobox/includes/services/Parser/Nodes/NodeNavigation.php
2018-08-16 11:25:53 +02:00

21 lines
390 B
PHP

<?php
namespace PortableInfobox\Parser\Nodes;
class NodeNavigation 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';
}
}