<commit_before><?php
// (c) Copyright 2002-2015 by authors of the Tiki Wiki CMS Groupware Project
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$

function wikiplugin_trackerfilter_info()
{
	require_once 'lib/wiki-plugins/wikiplugin_trackerlist.php';
	$list = wikiplugin_trackerlist_info();
	$params = array_merge(
		array(
			'filters' => array(
				'required' => true,
				'name' => tra('Filters'),
				'description' => tr('The list of fields that can be used as filters along with their formats.
					The field number and format are separated by a %0/%1 and multiple fields are separated by %0:%1.',
						'<code>', '</code>')
					. tr('Format choices are:') . '<br /><code>d</code> - ' . tr('dropdown')
					. '<br /><code>r</code> - ' . tr('radio buttons')
					. '<br /><code>m</code> - ' . tr('multiple choice dropdown')
					. '<br /><code>c</code> - ' . tr('checkbox')
					. '<br /><code>t</code> - ' . tr('text with wild characters')
					. '<br /><code>T</code> - ' . tr('exact text match')
					. '<br /><code>i</code> - ' . tr('initials')
					. '<br /><code>sqlsearch</code> - ' . tr('advanced search')
					. '<br /><code>></code>, <code>><</code>, <code>>>=</code>, <code>><=</code> - ' . tr('greater
						than, less than, greater than or equal, less than or equal.') . '<br />'
					. tr('Example:') . ' <code>2/d:4/r:5:(6:7)/sqlsearch</code>',
				'since' => '1',
				'default' => '',
				'profile_reference' => 'tracker_field_string',
			),
			'action' => array(
				'required' => false,
				'name' => tra('Action'),
				'description' => tr('Label on the submit button. Default: %0Filter%1. Use a space character to omit the
					button (for use in datachannels etc)', '<code>', '</code>'),
				'since' => '2.0',
				'default' => 'Filter'
			),
			'displayList' => array(
				'required' => false,
				'name' => tra('Display List'),
				'description' => tra('Show the full list (before filtering) initially (filtered list shown by default)'),
				'since' => '2.0',
				'filter' => 'alpha',
				'default' => 'n',
				'options' => array(
					array('text' => '', 'value' => ''),
					array('text' => tra('Yes'), 'value' => 'y'),
					array('text' => tra('No'), 'value' => 'n')
				)
			),
			'line' => array(
				'required' => false,
				'name' => tra('Line'),
				'description' => tra('Displays all the filters on the same line (not shown on same line by default)'),
				'since' => '2.0',
				'filter' => 'alpha',
				'default' => 'n',
				'options' => array(
					array('text' => '', 'value' => ''),
					array('text' => tra('Yes'), 'value' => 'y'),
					array('text' => tra('Yes with field label in dropdown'), 'value' => 'in'),
					array('text' => tra('No'), 'value' => 'n')
				)
			),
			'noflipflop' => array(
				'required' => false,
				'name' => tra('No Toggle'),
				'description' => tr('The toggle button to show/hide filters will not be shown if set to Yes (%0y%1).
					Default is to show the toggle.', '<code>', '</code>'),
				'since' => '6.0',
				'filter' => 'alpha',
				'default' => 'n',
				'options' => array(
					array('text' => '', 'value' => ''),
					array('text' => tra('Yes'), 'value' => 'y'),
					array('text' => tra('No'), 'value' => 'n')
				)
			),
			'export_action' => array(
				'required' => false,
				'name' => tra('Export CSV.'),
				'description' => tra('Label for an export button. Leave blank to show the usual "Filter" button instead.'),
				'since' => '6.0',
				'default' => '',
				'advanced' => true,
			),
			'export_status' => array(
				'required' => false,
				'name' => tra('Export Status Field'),
				'description' => tra('Export the status field if the Export CSV option is used'),
				'since' => '11.1',
				'advanced' => true,
				'filter' => 'alpha',
				'default' => 'n',
				'options' => array(
					array('text' => '', 'value' => ''),
					array('text' => tra('Yes'), 'value' => 'y'),
					array('text' => tra('No'), 'value' => 'n')
				)
			),					
			'export_created' => array(
				'required' => false,
				'name' => tra('Export Created Date Field'),
				'description' => tra('Export the created date field if the Export CSV option is used'),
				'since' => '11.1',
				'advanced' => true,
				'filter' => 'alpha',
				'default' => 'n',
				'options' => array(
					array('text' => '', 'value' => ''),
					array('text' => tra('Yes'), 'value' => 'y'),
					array('text' => tra('No'), 'value' => 'n')
				)
			),					
			'export_modif' => array(
				'required' => false,
				'name' => tra('Export Modified Date Field'),
				'description' => tra('Export the modified date field if the Export CSV option is used'),
				'since' => '11.1',
				'advanced' => true,
				'filter' => 'alpha',
				'default' => 'n',
				'options' => array(
					array('text' => '', 'value' => ''),
					array('text' => tra('Yes'), 'value' => 'y'),
					array('text' => tra('No'), 'value' => 'n')
				)
			),					
			'export_charset' => array(
				'required' => false,
				'name' => tra('Export Character Set'),
				'description' => tra('Character set to be used if the Export CSV option is used'),
				'since' => '11.1',
				'default' => 'UTF-8',
				'advanced' => true,
			),					
			'mapButtons' => array(
				'required' => false,
				'name' => tra('Map View Buttons'),
				'description' => tra('Display Mapview and Listview buttons'),
				'since' => '6.0' . tr(' - was %0 until 12.0', '<code>googlemapButtons</code>'),
				'filter' => 'alpha',
				'default' => '',
				'options' => array(
					array('text' => '', 'value' => ''),
					array('text' => tra('Yes'), 'value' => 'y'),
					array('text' => tra('No'), 'value' => 'n')
				)
			),
		),
		$list['params']
	);
<commit_msg>[DOC] trackerfilter: add doctype for future use with pluginmanager<commit_after><?php
// (c) Copyright 2002-2015 by authors of the Tiki Wiki CMS Groupware Project
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$

function wikiplugin_trackerfilter_info()
{
	require_once 'lib/wiki-plugins/wikiplugin_trackerlist.php';
	$list = wikiplugin_trackerlist_info();
	$params = array_merge(
		array(
			'filters' => array(
				'required' => true,
				'name' => tra('Filters'),
				'description' => tr('The list of fields that can be used as filters along with their formats.
					The field number and format are separated by a %0/%1 and multiple fields are separated by %0:%1.',
						'<code>', '</code>')
					. tr('Format choices are:') . '<br /><code>d</code> - ' . tr('dropdown')
					. '<br /><code>r</code> - ' . tr('radio buttons')
					. '<br /><code>m</code> - ' . tr('multiple choice dropdown')
					. '<br /><code>c</code> - ' . tr('checkbox')
					. '<br /><code>t</code> - ' . tr('text with wild characters')
					. '<br /><code>T</code> - ' . tr('exact text match')
					. '<br /><code>i</code> - ' . tr('initials')
					. '<br /><code>sqlsearch</code> - ' . tr('advanced search')
					. '<br /><code>></code>, <code>><</code>, <code>>>=</code>, <code>><=</code> - ' . tr('greater
						than, less than, greater than or equal, less than or equal.') . '<br />'
					. tr('Example:') . ' <code>2/d:4/r:5:(6:7)/sqlsearch</code>',
				'since' => '1',
				'doctype' => 'trackerfilter',
				'default' => '',
				'profile_reference' => 'tracker_field_string',
			),
			'action' => array(
				'required' => false,
				'name' => tra('Action'),
				'description' => tr('Label on the submit button. Default: %0Filter%1. Use a space character to omit the
					button (for use in datachannels etc)', '<code>', '</code>'),
				'since' => '2.0',
				'doctype' => 'trackerfilter',
				'default' => 'Filter'
			),
			'displayList' => array(
				'required' => false,
				'name' => tra('Display List'),
				'description' => tra('Show the full list (before filtering) initially (filtered list shown by default)'),
				'since' => '2.0',
				'doctype' => 'trackerfilter',
				'filter' => 'alpha',
				'default' => 'n',
				'options' => array(
					array('text' => '', 'value' => ''),
					array('text' => tra('Yes'), 'value' => 'y'),
					array('text' => tra('No'), 'value' => 'n')
				)
			),
			'line' => array(
				'required' => false,
				'name' => tra('Line'),
				'description' => tra('Displays all the filters on the same line (not shown on same line by default)'),
				'since' => '2.0',
				'doctype' => 'trackerfilter',
				'filter' => 'alpha',
				'default' => 'n',
				'options' => array(
					array('text' => '', 'value' => ''),
					array('text' => tra('Yes'), 'value' => 'y'),
					array('text' => tra('Yes with field label in dropdown'), 'value' => 'in'),
					array('text' => tra('No'), 'value' => 'n')
				)
			),
			'noflipflop' => array(
				'required' => false,
				'name' => tra('No Toggle'),
				'description' => tr('The toggle button to show/hide filters will not be shown if set to Yes (%0y%1).
					Default is to show the toggle.', '<code>', '</code>'),
				'since' => '6.0',
				'doctype' => 'trackerfilter',
				'filter' => 'alpha',
				'default' => 'n',
				'options' => array(
					array('text' => '', 'value' => ''),
					array('text' => tra('Yes'), 'value' => 'y'),
					array('text' => tra('No'), 'value' => 'n')
				)
			),
			'export_action' => array(
				'required' => false,
				'name' => tra('Export CSV.'),
				'description' => tra('Label for an export button. Leave blank to show the usual "Filter" button instead.'),
				'since' => '6.0',
				'doctype' => 'trackerfilter',
				'default' => '',
				'advanced' => true,
			),
			'export_status' => array(
				'required' => false,
				'name' => tra('Export Status Field'),
				'description' => tra('Export the status field if the Export CSV option is used'),
				'since' => '11.1',
				'advanced' => true,
				'filter' => 'alpha',
				'doctype' => 'trackerfilter',
				'default' => 'n',
				'options' => array(
					array('text' => '', 'value' => ''),
					array('text' => tra('Yes'), 'value' => 'y'),
					array('text' => tra('No'), 'value' => 'n')
				)
			),					
			'export_created' => array(
				'required' => false,
				'name' => tra('Export Created Date Field'),
				'description' => tra('Export the created date field if the Export CSV option is used'),
				'since' => '11.1',
				'advanced' => true,
				'filter' => 'alpha',
				'doctype' => 'trackerfilter',
				'default' => 'n',
				'options' => array(
					array('text' => '', 'value' => ''),
					array('text' => tra('Yes'), 'value' => 'y'),
					array('text' => tra('No'), 'value' => 'n')
				)
			),					
			'export_modif' => array(
				'required' => false,
				'name' => tra('Export Modified Date Field'),
				'description' => tra('Export the modified date field if the Export CSV option is used'),
				'since' => '11.1',
				'advanced' => true,
				'filter' => 'alpha',
				'doctype' => 'trackerfilter',
				'default' => 'n',
				'options' => array(
					array('text' => '', 'value' => ''),
					array('text' => tra('Yes'), 'value' => 'y'),
					array('text' => tra('No'), 'value' => 'n')
				)
			),					
			'export_charset' => array(
				'required' => false,
				'name' => tra('Export Character Set'),
				'description' => tra('Character set to be used if the Export CSV option is used'),
				'since' => '11.1',
				'doctype' => 'trackerfilter',
				'default' => 'UTF-8',
				'advanced' => true,
			),					
			'mapButtons' => array(
				'required' => false,
				'name' => tra('Map View Buttons'),
				'description' => tra('Display Mapview and Listview buttons'),
				'since' => '6.0' . tr(' - was %0 until 12.0', '<code>googlemapButtons</code>'),
				'filter' => 'alpha',
				'doctype' => 'trackerfilter',
				'default' => '',
				'options' => array(
					array('text' => '', 'value' => ''),
					array('text' => tra('Yes'), 'value' => 'y'),
					array('text' => tra('No'), 'value' => 'n')
				)
			),
		),
		$list['params']
	);

{'fraction_non_alphanumeric': 0.23164926931106472, 'fraction_numerical': 0.008517745302713988, 'mean_word_length': 2.949868073878628, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 372, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6098102', 'n_tokens_mistral': 5046, 'n_tokens_neox': 4039, 'n_words': 1098}