Lines Matching refs:node
132 $node = $this->createNamespaceNode($id, $subdir);
135 if ($depth !== 0 && $this->applyRecursionDecision($node, $this->maxdepth - $depth)) {
136 $this->createHierarchy($node, $dir . '/' . $subdir, $depth - 1);
140 $this->addNodeToHierarchy($parent, $node);
157 $node = new WikiStartpage($id, $title, $ns);
159 $node = new WikiNamespace($id, $title);
161 return $node;
197 * @param AbstractNode $node Node to add
200 protected function addNodeToHierarchy(AbstractNode $parent, AbstractNode $node): void argument
202 $node->setParent($parent); // set the parent even when not added, yet
203 $node = $this->applyNodeProcessor($node);
204 if ($node instanceof AbstractNode) {
205 $parent->addChild($node);
240 protected function applyRecursionDecision(AbstractNode $node, int $depth): bool argument
243 if (!$this->hasNotFlag(self::FLAG_KEEP_HIDDEN) && isHiddenPage($node->getId())) {
246 return parent::applyRecursionDecision($node, $depth);
250 protected function applyNodeProcessor(AbstractNode $node): ?AbstractNode argument
253 if (!$this->hasNotFlag(self::FLAG_KEEP_HIDDEN) && isHiddenPage($node->getId())) {
256 return parent::applyNodeProcessor($node);