49 public static function evaluate($settings, &$state)
51 $res = ($GLOBALS[
'SQ_SYSTEM']->userSystemAdmin() == $settings[
'is_sysadmin']);
67 public static function getInterface($settings, $prefix, $write_access=FALSE)
70 $options = Array(0 => translate(
'is_not'), 1 => translate(
'is'));
71 $value = array_get_index($settings,
'is_sysadmin', 1);
73 combo_box($prefix.
'[is_sysadmin]', $options, FALSE, $value);
75 echo
'<b>'.$options[$value].
'</b>';
77 $var = ob_get_contents();
79 return translate(
'trigger_asset_sysadmin', $var);
96 if (empty($request_data)) {
97 return translate(
'trigger_input_data_error');
100 $settings[
'is_sysadmin'] = $request_data[
'is_sysadmin'];