blob: 7bb4654c201907646f951e720dc8ba669b00347f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<?php
namespace dokuwiki\TreeBuilder\Node;
/**
* A node representing a namespace startpage
*/
class WikiStartpage extends WikiNamespace
{
protected string $originalNamespace;
/**
* Constructor
*
* @param string $id The pageID of the startpage
* @param string|null $title The title as given in the link
* @param string $originalNamespace The original namespace
*/
public function __construct(string $id, ?string $title, string $originalNamespace)
{
$this->originalNamespace = $originalNamespace;
parent::__construct($id, $title);
}
/**
* This will return the namespace this startpage is for
*
* This might differ from the namespace of the pageID, because a startpage may be outside
* the namespace.
*
* @inheritdoc
*/
public function getNs(): string
{
return $this->originalNamespace;
}
}
|