filemanager/inc/class.filemanager_ui.inc.php 1 location
|
@@ 733-739 (lines=7) @@
|
| 730 |
|
list($action, $settings) = explode('_', $action, 2); |
| 731 |
|
switch($action) |
| 732 |
|
{ |
| 733 |
|
case 'document': |
| 734 |
|
if (!$settings) $settings = $GLOBALS['egw_info']['user']['preferences']['filemanager']['default_document']; |
| 735 |
|
$document_merge = new filemanager_merge(Vfs::decodePath($dir)); |
| 736 |
|
$msg = $document_merge->download($settings, $selected, '', $GLOBALS['egw_info']['user']['preferences']['filemanager']['document_dir']); |
| 737 |
|
if($msg) return $msg; |
| 738 |
|
$errs = count($selected); |
| 739 |
|
return false; |
| 740 |
|
} |
| 741 |
|
} |
| 742 |
|
return "Unknown action '$action'!"; |
calendar/inc/class.calendar_uilist.inc.php 1 location
|
@@ 627-633 (lines=7) @@
|
| 624 |
|
echo $ical; |
| 625 |
|
exit(); |
| 626 |
|
|
| 627 |
|
case 'document': |
| 628 |
|
if (!$settings) $settings = $GLOBALS['egw_info']['user']['preferences']['calendar']['default_document']; |
| 629 |
|
$document_merge = new calendar_merge(); |
| 630 |
|
$msg = $document_merge->download($settings, $checked, '', $GLOBALS['egw_info']['user']['preferences']['calendar']['document_dir']); |
| 631 |
|
$failed = count($checked); |
| 632 |
|
error_log($msg); |
| 633 |
|
return false; |
| 634 |
|
} |
| 635 |
|
|
| 636 |
|
// Actions where the action is applied to each entry |
timesheet/inc/class.timesheet_ui.inc.php 1 location
|
@@ 1209-1214 (lines=6) @@
|
| 1206 |
|
} |
| 1207 |
|
break; |
| 1208 |
|
|
| 1209 |
|
case 'document': |
| 1210 |
|
if (!$settings) $settings = $GLOBALS['egw_info']['user']['preferences']['timesheet']['default_document']; |
| 1211 |
|
$document_merge = new timesheet_merge(); |
| 1212 |
|
$msg = $document_merge->download($settings, $checked, '', $GLOBALS['egw_info']['user']['preferences']['timesheet']['document_dir']); |
| 1213 |
|
$failed = count($checked); |
| 1214 |
|
return false; |
| 1215 |
|
} |
| 1216 |
|
|
| 1217 |
|
return !$failed; |