2015-04-27 14:05:31 +00:00
|
|
|
<?php
|
|
|
|
namespace Wikia\PortableInfobox\Parser\Nodes;
|
|
|
|
|
2015-07-01 14:19:31 +00:00
|
|
|
class NodeNavigation extends Node {
|
2015-04-27 14:05:31 +00:00
|
|
|
|
|
|
|
public function getData() {
|
2015-06-10 09:28:33 +00:00
|
|
|
if ( !isset( $this->data ) ) {
|
2015-06-11 12:51:54 +00:00
|
|
|
$this->data = [ 'value' => $this->getInnerValue( $this->xmlNode ) ];
|
2015-06-10 09:28:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return $this->data;
|
2015-04-27 14:05:31 +00:00
|
|
|
}
|
|
|
|
|
2015-06-10 09:28:33 +00:00
|
|
|
public function isEmpty() {
|
|
|
|
$data = $this->getData();
|
|
|
|
$links = trim( $data[ 'value' ] );
|
|
|
|
|
2015-05-20 14:57:43 +00:00
|
|
|
return empty( $links ) && $links != '0';
|
2015-04-27 14:05:31 +00:00
|
|
|
}
|
|
|
|
}
|