PortableInfobox/includes/services/Parser/Nodes/NodeNavigation.php

21 lines
390 B
PHP
Raw Normal View History

<?php
namespace 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();
2018-08-16 09:25:53 +00:00
$links = trim( $data['value'] );
2015-05-20 14:57:43 +00:00
return empty( $links ) && $links != '0';
}
}