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' => tra('The list of fields that can be used as filters along with their formats. The field number and format are separated by a / and multile fields are separated by ":". Format choices are: d - dropdown; r - radio buttons; m - multiple choice dropdown; c - checkbox; t - text with wild characters; T - exact text match; i - initials; sqlsearch - advanced search; >, <, >=, <= - greater than, less than, greater than or equal, less than or equal. Example:') . '2/d:4/r:5:(6:7)/sqlsearch', 'default' => '', 'profile_reference' => 'tracker_field_string'), 'action' => array('required' => false, 'name' => tra('Action'), 'description' => tra('Label on the submit button. Default: "Filter". Use a space character to omit the button (for use in datachannels etc)'), 'default' => 'Filter'), 'displayList' => array('required' => false, 'name' => tra('Display List'), 'description' => tra('Show the full list (before filtering) initially (filtered list shown by default)'), '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)'), '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' => tra('The toggle button to show/hide filters will not be shown if set to y (Yes). Default is to show the toggle.'), '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.'), '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'), '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'), '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'), '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'), 'default' => 'UTF-8', 'advanced' => true), 'mapButtons' => array('required' => false, 'name' => tra('Map View Buttons'), 'description' => tra('Display Mapview and Listview buttons'), 'filter' => 'alpha', 'default' => '', 'options' => array(array('text' => '', 'value' => ''), array('text' => tra('Yes'), 'value' => 'y'), array('text' => tra('No'), 'value' => 'n')))), $list['params']);
    return array('name' => tra('Tracker Filter'), 'documentation' => 'PluginTrackerFilter', 'description' => tra('Create a form to filter tracker fields'), 'prefs' => array('feature_trackers', 'wikiplugin_trackerfilter'), 'body' => tra('notice'), 'icon' => 'img/icons/application_form_magnify.png', 'params' => $params, 'format' => 'html', 'extraparams' => true);
}
Example #2
0
function wikiplugin_trackerfilter_info()
{
    require_once 'lib/wiki-plugins/wikiplugin_trackerlist.php';
    $list = wikiplugin_trackerlist_info();
    $params = array_merge($list['params'], array('filters' => array('required' => true, 'name' => tra('Filters'), 'description' => tra('Example:') . '2/d:4/r:5'), 'action' => array('required' => false, 'name' => tra('Action'), 'description' => tra('Label on the submit button')), 'displayList' => array('required' => false, 'name' => tra('Display List'), 'description' => 'y|n'), 'line' => array('required' => false, 'name' => tra('Line'), 'description' => 'y|n - displays all the filter on the same line')));
    return array('name' => tra('Tracker Filter'), 'documentation' => 'PluginTrackerFilter', 'description' => tra("Filters the items of a tracker, fields are indicated with numeric ids."), 'prefs' => array('feature_trackers', 'wikiplugin_trackerfilter'), 'body' => tra('notice'), 'params' => $params);
}
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']);
    return array('name' => tra('Tracker Filter'), 'documentation' => 'PluginTrackerFilter', 'description' => tra('Create a form to filter tracker fields'), 'prefs' => array('feature_trackers', 'wikiplugin_trackerfilter'), 'body' => tra('notice'), 'iconname' => 'filter', 'introduced' => 1, 'params' => $params, 'format' => 'html', 'extraparams' => true);
}