mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-12-23 13:32:36 +00:00
25 lines
439 B
PHP
25 lines
439 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 ),
|
|
'item-name' => $this->getItemName()
|
|
];
|
|
}
|
|
|
|
return $this->data;
|
|
}
|
|
|
|
public function isEmpty() {
|
|
$data = $this->getData();
|
|
$links = trim( $data['value'] );
|
|
|
|
return empty( $links ) && $links != '0';
|
|
}
|
|
}
|