config for export limit excepted users/groups, need backend work from nathan

This commit is contained in:
Ralf Becker 2011-08-17 09:36:51 +00:00
parent 495632fc40
commit 7cbff78854
2 changed files with 22 additions and 6 deletions

View File

@ -294,12 +294,15 @@
<td>{lang_How_many_entries_should_non-admins_be_able_to_export_(empty_=_no_limit,_no_=_no_export)}:<br />{lang_This_controls_exports_and_merging.}</td>
<td><input name="newsettings[export_limit]" value="{value_export_limit}" size="5"></td>
</tr>
</tr>
<tr class="row_on">
<td>{lang_Group_excepted_from_above_export_limit_(admins_are_always_excepted)}:</td>
<td>{call_bo_merge::hook_export_limit_excepted}</td>
</tr>
<tr class="row_off">
<td>{lang_Allow_remote_administration_from_following_install_ID's_(comma_separated)}:<br />{lang_Own_install_ID:_}{value_install_id}</td>
<td><input name="newsettings[allow_remote_admin]" value="{value_allow_remote_admin}" size="40"></td>
</tr>
<tr class="row_off">
<tr class="row_on">
<td>{lang_Should_exceptions_contain_a_trace_(including_function_arguments)}:</td>
<td>
<select name="newsettings[exception_show_trace]">

View File

@ -76,6 +76,19 @@ abstract class bo_merge
$this->export_limit = $GLOBALS['egw_info']['server']['export_limit'];
}
/**
* Hook returning options for export_limit_excepted groups
*
* @param array $config
*/
public static function hook_export_limit_excepted($config)
{
error_log(__METHOD__.'('.array2string($config).')');
$accountsel = new uiaccountsel();
return $accountsel->selection('newsettings[export_limit_excepted]','export_limit_excepted',$config['export_limit_excepted'],'both',4);
}
/**
* Get all replacements, must be implemented in extending class
*