1<?php
2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
3//
4// All Rights Reserved. See copyright.txt for details and a complete list of authors.
5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
6// $Id$
7
8//this script may only be included - so its better to die if called directly.
9if (strpos($_SERVER['SCRIPT_NAME'], basename(__FILE__)) !== false) {
10	header('location: index.php');
11	exit;
12}
13
14/**
15 * Class Table_Settings_TikiAdminGroups
16 *
17 * Tablesorter settings for the table listing users banned from a group at tiki-admingroups.php
18 *
19 * @package Tiki
20 * @subpackage Table
21 * @uses Table_Settings_Standard
22 */
23class Table_Settings_TikiAdminGroupsBanned extends Table_Settings_Standard
24{
25	protected $ts = [
26		'ajax' => [
27			'url' => ['file' => 'tiki-admingroups.php'],
28			'sortparam' => 'bannedSort',
29			'offset' => 'bannedOffset',
30			'numrows' => 'bannedMax',
31			'requiredparams' => ['group']
32		],
33		'filters' => [
34			'type' => false,
35		],
36		'columns' => [
37			'#checkbox' => [
38				'sort' => [
39					'type' => false
40				],
41				'filter' => [
42					'type' => false
43				],
44				'resizable' => false,
45				'priority' => 'critical'
46			],
47			'#user' => [
48				'sort' => [
49					'type' => 'text',
50					'dir' => 'asc',
51					'ajax' => 'source_itemId'
52				],
53				'filter' => [
54					'type' => false
55				],
56				'priority' => 'critical'
57			],
58			'#unban' => [
59				'sort' => [
60					'type' => false
61				],
62				'filter' => [
63					'type' => false
64				],
65				'priority' => 1
66			]
67		]
68	];
69}
70