本文整理汇总了PHP中Export::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP Export::delete方法的具体用法?PHP Export::delete怎么用?PHP Export::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Export
的用法示例。
在下文中一共展示了Export::delete方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GETPOST
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;
}
$hexafiltervalue = '';
示例2: array
<?php
// save configuration
define('ROOT', '../..');
include ROOT . '/lib/includeForAjax.php';
requireStrictRoute();
$response = array();
$response['error'] = 1;
$response['message'] = '';
if (!isAdmin()) {
$response['error'] = 1;
$response['message'] = _t('관리자만이 이 기능을 사용할 수 있습니다.');
} else {
$domainName = $_POST['domainName'];
requireComponent('Bloglounge.Model.Exports');
$export = new Export;
if ($export->delete($domainName))
$response['error'] = 0;
}
func::printRespond($response);
?>