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

25 lines
439 B
PHP
Raw Normal View History

<?php
2022-03-11 20:35:51 +00:00
namespace PortableInfobox\Parser\Nodes;
class NodeNavigation extends Node {
public function getData() {
if ( !isset( $this->data ) ) {
2019-02-02 22:34:48 +00:00
$this->data = [
'value' => $this->getInnerValue( $this->xmlNode ),
'item-name' => $this->getItemName()
];
}
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';
}
}