<?php

namespace Modules\Admin\Config\CorporateGroupsManagement;

class View_List extends \App\Mvc\View_Window_PaginatedListing_ListAbstract
{
	/**
	 *************************************************************************************
	 *************************************************************************************
	 *************************************************************************************
	 *
	 * Please pay attention that any changes in the corporate groups management files
	 * might affect the supplier groups management files.
	 *
	 **************************************************************************************
	 **************************************************************************************
	 **************************************************************************************
	 */

	/**
	 * Results per page list
	 * @see \App\Mvc\\App\Mvc\View_Window_PaginatedListing_ListAbstract::$resultsPerPageList
	 */
	protected $resultsPerPageList = [5, 10, 15, 20, 25, 30, 40, 50, 100];

	/**
	 * (non-PHPdoc)
	 * @see \App\Mvc\\App\Mvc\View_Window_PaginatedListing_ListAbstract::list_getThDetails()
	 */
	protected function list_getThDetails()
	{
		return \App\Mvc\View\Utils\Types\ListingColumns::create()
			->append(
				\App\Mvc\View\Utils\Types\ListingColumnGroup::create('group')
			)
			->append(
				\App\Mvc\View\Utils\Types\ListingColumn::create('groupElements')
			)

		->loadLabels($this->lang['index']['listCols'])
		->loadSettings($this->input['listingParams']->getDynamicColumnsSettings());
	}

}
