src/ORM/Hierarchy/MarkedSet.php
protected function isNodeLimited(DataObject $node, $count = null)
    {
        // Singleton root node isn't limited
        if (!$node->ID) {
            return false;
        }

        // Check if limiting is enabled first
        if (!$this->getLimitingEnabled()) {
            return false;
        }

        // Count children for this node and compare to max
        if (!isset($count)) {
            $count = $this->getNumChildren($node);
        }
        return $count > $this->getMaxChildNodes();
    }
protected function isNodeLimited(DataObject $node, $count = null)
    {
        // Singleton root node isn't limited
        if (!$node->ID) {
            return false;
        }

        // Check if limiting is enabled first
        if (!$this->getLimitingEnabled()) {
            return false;
        }

        // Count children for this node and compare to max
        if (!isset($count)) {
            $count = $this->getNumChildren($node);
        }
        return $count > $this->getMaxChildNodes();
    }
protected function isNodeLimited ( DataObject $ node , $ count = null ) { // Singleton root node isn't limited if ( ! $ node -> ID ) { return false ; } // Check if limiting is enabled first if ( ! $ this -> getLimitingEnabled ( ) ) { return false ; } // Count children for this node and compare to max if ( ! isset ( $ count ) ) { $ count = $ this -> getNumChildren ( $ node ) ; } return $ count > $ this -> getMaxChildNodes ( ) ; }
Check if this node has too many children

@param DataObject|Hierarchy $node
@param int $count Children count (if already calculated)
@return bool
Check if this node has too many children