Lines Matching defs:node
46 * @param array $node
52 public static function getSubNode($node, Node $parent, Node $previous = null)
55 if ($node['type'] === 'link') {
56 $linkType = $node['attrs']['data-type'];
57 return new self::$linkClasses[$linkType]($node, $parent, $previous);
60 if (isset(self::$nodeclass[$node['type']])) {
61 return new self::$nodeclass[$node['type']]($node, $parent, $previous);
64 'node' => $node,
71 $exception = new ProsemirrorException('Invalid node type received: ' . $node['type'], 0);
72 $exception->addExtraData('nodeData', $node);
80 $exception = new ProsemirrorException('FIXME: better message for general error! Invalid node type received: ' . $node['type'], 0, $e);
81 $exception->addExtraData('nodeData', $node);
89 * Get the node's representation as DokuWiki Syntax