private static function _isCollapsed($level, $childCount)
    {
        if (static::$expand_all) {
            return false;
        }

        $cascade = static::$_cascade;

        if ($cascade == null) {
            $cascade = static::_config('display', 'cascade', array());
        }

        if (isset($cascade[$level])) {
            return $childCount >= $cascade[$level];
        }
        return true;
    }
private static function _isCollapsed($level, $childCount)
    {
        if (static::$expand_all) {
            return false;
        }

        $cascade = static::$_cascade;

        if ($cascade == null) {
            $cascade = static::_config('display', 'cascade', array());
        }

        if (isset($cascade[$level])) {
            return $childCount >= $cascade[$level];
        }
        return true;
    }
private static function _isCollapsed ( $ level , $ childCount ) { if ( static :: $ expand_all ) { return false ; } $ cascade = static :: $ _cascade ; if ( $ cascade == null ) { $ cascade = static :: _config ( 'display' , 'cascade' , array ( ) ) ; } if ( isset ( $ cascade [ $ level ] ) ) { return $ childCount >= $ cascade [ $ level ] ; } return true ; }
Determines if a given node will be collapsed or not.
@param $level integer Which level we're at
@param $childCount integer How many children are at this level
@return bool
Determines if a given node will be collapsed or not .