本文整理汇总了PHP中Export::fetch方法的典型用法代码示例。如果您正苦于以下问题:PHP Export::fetch方法的具体用法?PHP Export::fetch怎么用?PHP Export::fetch使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Export
的用法示例。
在下文中一共展示了Export::fetch方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GETPOST
// Delete file
if ($step == 5 && $action == 'confirm_deletefile' && $confirm == 'yes') {
$file = $upload_dir . "/" . GETPOST('file');
// Do not use urldecode here ($_GET and $_REQUEST are already decoded by PHP).
$ret = dol_delete_file($file);
if ($ret) {
setEventMessage($langs->trans("FileWasRemoved", GETPOST('file')));
} else {
setEventMessage($langs->trans("ErrorFailToDeleteFile", GETPOST('file')), 'errors');
}
header('Location: ' . $_SERVER["PHP_SELF"] . '?step=' . $step . '&datatoexport=' . $datatoexport);
exit;
}
if ($action == 'deleteprof') {
if ($_GET["id"]) {
$objexport->fetch($_GET["id"]);
$result = $objexport->delete($user);
}
}
// TODO The export for filter is not yet implemented (old code created conflicts with step 2). We must use same way of working and same combo list of predefined export than step 2.
if ($action == 'add_export_model') {
if ($export_name) {
asort($array_selected);
// Set save string
$hexa = '';
foreach ($array_selected as $key => $val) {
if ($hexa) {
$hexa .= ',';
}
$hexa .= $key;
}