Location: PHPKode > projects > Dresscode Framework > dresscode-master/applications/common/modules/Listing/controller.php
<?php
namespace Dresscode\Controller;

class Listing extends \Dresscode\Controller
{
	/**
	 * @property
	 * @var string
	 */
	protected $type = 'unordered';

	/**
	 * @property
	 * @var int
	 */
	protected $maximum;

	public function get(array $params = array())
	{
		if (!is_null($this->maximum))
		{
			while (($count = count($this->children)) > $this->maximum && $count > 0)
			{
				$lastChild = $this->children[$count - 1];
				$this->node->removeChild($lastChild->getNode());
				unset($this->children[$count - 1]);
			}
		}
		parent::get($params); // execute children after removing backlog
	}
}
Return current item: Dresscode Framework