mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-12-22 21:12:35 +00:00
21 lines
398 B
PHP
21 lines
398 B
PHP
<?php
|
|
namespace Wikia\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';
|
|
}
|
|
}
|