public isNodeTypeAllowedAsChildNode ( |
||
$nodeType | ||
리턴 | boolean | TRUE if the passed $nodeType is allowed as child node |
public function isNodeTypeAllowedAsChildNode(NodeType $nodeType)
{
if ($this->isAutoCreated()) {
return $this->getParent()->getNodeType()->allowsGrandchildNodeType($this->getName(), $nodeType);
} else {
return $this->getNodeType()->allowsChildNodeType($nodeType);
}
}