src/View/Helper/TreeHelper.php
protected function _suffix($reset = false) {
		static $_splitCount = 0;
		static $_splitCounter = 0;

		if ($reset) {
			$_splitCount = 0;
			$_splitCounter = 0;
		}
		extract($this->_config);
		if ($splitDepth || $splitCount) {
			if (!$splitDepth) {
				$_splitCount = $totalNodes / $splitCount;
				$rounded = (int)$_splitCount;
				if ($rounded < $_splitCount) {
					$_splitCount = $rounded + 1;
				}
			} elseif ($depth == $splitDepth - 1) {
				$total = $numberOfDirectChildren ? $numberOfDirectChildren : $numberOfTotalChildren;
				if ($total) {
					$_splitCounter = 0;
					$_splitCount = $total / $splitCount;
					$rounded = (int)$_splitCount;
					if ($rounded < $_splitCount) {
						$_splitCount = $rounded + 1;
					}
				}
			}
			if (!$splitDepth || $depth == $splitDepth) {
				$_splitCounter++;
				if ($type && ($_splitCounter % $_splitCount) === 0 && !$lastChild) {
					unset($this->_config['callback']);

					return '</' . $type . '><' . $type . '>';
				}
			}
		}
	}
protected function _suffix($reset = false) {
		static $_splitCount = 0;
		static $_splitCounter = 0;

		if ($reset) {
			$_splitCount = 0;
			$_splitCounter = 0;
		}
		extract($this->_config);
		if ($splitDepth || $splitCount) {
			if (!$splitDepth) {
				$_splitCount = $totalNodes / $splitCount;
				$rounded = (int)$_splitCount;
				if ($rounded < $_splitCount) {
					$_splitCount = $rounded + 1;
				}
			} elseif ($depth == $splitDepth - 1) {
				$total = $numberOfDirectChildren ? $numberOfDirectChildren : $numberOfTotalChildren;
				if ($total) {
					$_splitCounter = 0;
					$_splitCount = $total / $splitCount;
					$rounded = (int)$_splitCount;
					if ($rounded < $_splitCount) {
						$_splitCount = $rounded + 1;
					}
				}
			}
			if (!$splitDepth || $depth == $splitDepth) {
				$_splitCounter++;
				if ($type && ($_splitCounter % $_splitCount) === 0 && !$lastChild) {
					unset($this->_config['callback']);

					return '</' . $type . '><' . $type . '>';
				}
			}
		}
	}
protected function _suffix ( $ reset = false ) { static $ _splitCount = 0 ; static $ _splitCounter = 0 ; if ( $ reset ) { $ _splitCount = 0 ; $ _splitCounter = 0 ; } extract ( $ this -> _config ) ; if ( $ splitDepth || $ splitCount ) { if ( ! $ splitDepth ) { $ _splitCount = $ totalNodes / $ splitCount ; $ rounded = ( int ) $ _splitCount ; if ( $ rounded < $ _splitCount ) { $ _splitCount = $ rounded + 1 ; } } elseif ( $ depth == $ splitDepth - 1 ) { $ total = $ numberOfDirectChildren ? $ numberOfDirectChildren : $ numberOfTotalChildren ; if ( $ total ) { $ _splitCounter = 0 ; $ _splitCount = $ total / $ splitCount ; $ rounded = ( int ) $ _splitCount ; if ( $ rounded < $ _splitCount ) { $ _splitCount = $ rounded + 1 ; } } } if ( ! $ splitDepth || $ depth == $ splitDepth ) { $ _splitCounter ++ ; if ( $ type && ( $ _splitCounter % $ _splitCount ) === 0 && ! $ lastChild ) { unset ( $ this -> _config [ 'callback' ] ) ; return '</' . $ type . '><' . $ type . '>' ; } } } }
Suffix method.

Used to close and reopen a ul/ol to allow easier listings

@param bool $reset Reset
@return string
Suffix method .