本文整理汇总了PHP中doDelete函数的典型用法代码示例。如果您正苦于以下问题:PHP doDelete函数的具体用法?PHP doDelete怎么用?PHP doDelete使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了doDelete函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: do_admin_body
function do_admin_body()
{
runTweak('do-admin-body');
if ($_GET['action'] == 'addpage') {
addpage();
} elseif ($_GET['action'] == 'delete') {
doDelete();
} elseif ($_GET['action'] == 'edit') {
performEdit();
} elseif ($_GET['action'] == 'showpages') {
showpageslist();
} elseif ($_GET['action'] == 'editarea') {
doAreaEdit();
} elseif ($_GET['action'] == 'showareas') {
nanoadmin_showareas();
} elseif ($_GET['action'] == 'settings') {
nanoadmin_showsettings();
} elseif ($_GET['action'] == 'tweakers') {
showTweakers();
} elseif (isset($_GET[tweak])) {
showTweaksInterface();
} elseif (!isset($_GET['action'])) {
$introPage = NANO_ADMIND_DESIGN_BASE . "intro.php";
runTweak('intro-page', array(&$introPage));
require_once $introPage;
}
}
示例2: doUpdate
$template = $op->status_ok ? null : $templateCfg->default_template;
$ui = $op->ui;
$status_ok = $op->status_ok;
$user_feedback = $op->msg;
$reloadType = $op->reloadType;
break;
case 'doUpdate':
$op = doUpdate($args, $tproject_mgr, $session_tproject_id);
$template = $op->status_ok ? null : $templateCfg->default_template;
$ui = $op->ui;
$status_ok = $op->status_ok;
$user_feedback = $op->msg;
$reloadType = $op->reloadType;
break;
case 'doDelete':
$op = doDelete($args, $tproject_mgr, $session_tproject_id);
$status_ok = $op->status_ok;
$user_feedback = $op->msg;
$reloadType = $op->reloadType;
break;
case 'setActive':
case 'setInactive':
case 'enableRequirements':
case 'disableRequirements':
$m2c = $args->doAction;
$tproject_mgr->{$m2c}($args->tprojectID);
$template = null;
$ui = new stdClass();
$status_ok = 1;
$user_feedback = '';
$reloadType = 'reloadNavBar';
示例3: isset
<?php
require_once "../../../includes/initialize.php";
$action = isset($_GET['action']) && $_GET['action'] != '' ? $_GET['action'] : '';
switch ($action) {
case 'add':
doInsert();
break;
case 'edit':
doEdit();
break;
case 'delete':
doDelete();
break;
case 'assign':
doAssignsubj();
break;
case 'delsubj':
doDelsubj();
break;
case 'enroll':
doEnroll();
break;
case 'delsy':
doDelsy();
break;
}
function doInsert()
{
if (isset($_POST['save'])) {
$NAME = $_POST['name'];
示例4: lang_get
$gui->main_descr = lang_get('title_build_2') . config_get('gui_title_separator_2') . lang_get('test_plan') . config_get('gui_title_separator_1') . $args->tplan_name;
$gui->cancelAction = "lib/plan/buildView.php?tproject_id={$gui->tproject_id}&tplan_id={$gui->tplan_id}";
$of = web_editor('notes', $_SESSION['basehref'], $editorCfg);
$of->Value = getItemTemplateContents('build_template', $of->InstanceName, $args->notes);
switch ($args->do_action) {
case 'edit':
$op = edit($args, $build_mgr, $date_format_cfg);
$gui->closed_on_date = $args->closed_on_date;
$of->Value = $op->notes;
break;
case 'create':
$op = create($args);
$gui->closed_on_date = $args->closed_on_date;
break;
case 'do_delete':
$op = doDelete($args, $build_mgr);
break;
case 'do_update':
$op = doUpdate($args, $build_mgr, $tplan_mgr, $date_format_cfg);
$of->Value = $op->notes;
$templateCfg->template = $op->template;
break;
case 'do_create':
$op = doCreate($args, $build_mgr, $tplan_mgr, $date_format_cfg);
$of->Value = $op->notes;
$templateCfg->template = $op->template;
break;
}
// BUGID 3716
$dummy = null;
$gui->release_date = isset($op->status_ok) && $op->status_ok && $args->release_date != "" ? localize_dateOrTimeStamp(null, $dummy, 'date_format', $args->release_date) : $args->release_date_original;
示例5: doCreate
case 'do_add_and_assign':
$op = doCreate($_REQUEST, $cfield_mgr, $args);
$gui->cfield = $op->cf;
$user_feedback = $op->user_feedback;
$templateCfg->template = $op->template;
$operation_descr = '';
break;
case 'do_update':
$op = doUpdate($_REQUEST, $args, $cfield_mgr);
$gui->cfield = $op->cf;
$user_feedback = $op->user_feedback;
$operation_descr = $op->operation_descr;
$templateCfg->template = $op->template;
break;
case 'do_delete':
$op = doDelete($args, $cfield_mgr);
$user_feedback = $op->user_feedback;
$operation_descr = $op->operation_descr;
$templateCfg->template = $op->template;
$do_control_combo_display = 0;
break;
}
if ($do_control_combo_display) {
$keys2loop = $cfield_mgr->get_application_areas();
foreach ($keys2loop as $ui_mode) {
if ($cfieldCfg->enable_on_cfg[$ui_mode][$gui->cfield['node_type_id']]) {
$cfieldCfg->cf_enable_on[$ui_mode]['value'] = 1;
}
if (!$cfieldCfg->show_on_cfg[$ui_mode][$gui->cfield['node_type_id']]) {
$cfieldCfg->cf_show_on[$ui_mode]['disabled'] = ' disabled="disabled" ';
$cfieldCfg->cf_show_on[$ui_mode]['style'] = ' style="display:none;" ';
示例6: nonce_check
nonce_check();
exit(doUpload($path));
case 'chmod':
nonce_check();
exit(doChmod($subject, $path, $_POST['mod']));
case 'extract':
nonce_check();
exit(doExtract($subject, $path));
case 'readFile':
exit(doReadFile($subject, $path));
case 'rename':
nonce_check();
exit(doRename($subject, $path));
case 'delete':
nonce_check();
exit(doDelete($subject, $path));
case 'saveEdit':
nonce_check();
exit(doSaveEdit($subject, $path));
case 'copy':
nonce_check();
exit(doCopy($subject, $path));
case 'move':
nonce_check();
exit(doMove($subject, $path));
case 'moveList':
exit(moveList($subject, $path));
case 'installCodeMirror':
exit(installCodeMirror());
case 'fileExists':
exit(file_exists($path . '/' . $subject));
示例7: switch
$op->operation_descr = '';
$op->user_feedback = '';
$op->buttonCfg = '';
$op->status_ok = 1;
switch ($args->do_action) {
case 'edit':
$op = edit($args, $build_mgr, $date_format_cfg);
$gui->closed_on_date = $args->closed_on_date;
$of->Value = $op->notes;
break;
case 'create':
$op = create($args);
$gui->closed_on_date = $args->closed_on_date;
break;
case 'do_delete':
$op = doDelete($db, $args, $build_mgr, $tplan_mgr);
break;
case 'do_update':
$op = doUpdate($args, $build_mgr, $tplan_mgr, $date_format_cfg);
$of->Value = $op->notes;
$templateCfg->template = $op->template;
break;
case 'do_create':
$op = doCreate($args, $build_mgr, $tplan_mgr, $date_format_cfg);
$of->Value = $op->notes;
$templateCfg->template = $op->template;
break;
case 'setActive':
$build_mgr->setActive($args->build_id);
break;
case 'setInactive':
示例8: switch
$op->operation_descr = '';
$op->user_feedback = '';
$op->buttonCfg = '';
$op->status_ok = 1;
switch ($args->do_action) {
case 'edit':
$op = edit($args, $build_mgr, $date_format_cfg);
$gui->closed_on_date = $args->closed_on_date;
$of->Value = $op->notes;
break;
case 'create':
$op = create($args);
$gui->closed_on_date = $args->closed_on_date;
break;
case 'do_delete':
$op = doDelete($args, $build_mgr, $args->userID);
break;
case 'do_update':
$op = doUpdate($args, $build_mgr, $tplan_mgr, $date_format_cfg);
$of->Value = $op->notes;
$templateCfg->template = $op->template;
break;
case 'do_create':
$op = doCreate($args, $build_mgr, $tplan_mgr, $date_format_cfg);
$of->Value = $op->notes;
$templateCfg->template = $op->template;
break;
case 'setActive':
$build_mgr->setActive($args->build_id);
break;
case 'setInactive':
示例9: adminFuncSwitch
function adminFuncSwitch()
{
if (isset($_GET['action'])) {
switch ($_GET['action']) {
case "addpage":
$pageAdded = addPage();
if ($pageAdded) {
performEdit($pageAdded);
}
break;
case "extlink":
$xLinkAdded = addExtLink();
if ($xLinkAdded) {
performEditLink($xLinkAdded);
}
break;
case "addinfo":
$pageAdded = addPage();
if ($pageAdded) {
performEdit($pageAdded);
}
break;
case 'delete':
doDelete();
break;
case 'edit':
performEdit();
break;
case 'editinfo':
performEdit();
break;
case 'editextlink':
performEditLink();
break;
case 'showpages':
manageContent();
break;
case 'showcats':
manageCats();
break;
case 'showinfobar':
manageInfobar();
break;
case 'fileman':
fileManager();
break;
case 'filemanview':
fileManager();
break;
case 'backuptool':
backupTool_settings();
break;
case 'reordercat':
performMove();
manageCats();
break;
case 'reorderinfo':
performMove();
manageInfobar();
break;
case 'blademan':
if ($_SESSION['adminType'] != 'user') {
showBladePacks('system');
}
break;
case 'bladesystem':
if ($_SESSION['adminType'] != 'user') {
showBladePacks('system');
}
break;
case 'bladetheme':
if ($_SESSION['adminType'] != 'user') {
showBladePacks('theme');
}
break;
case 'bladelanguage':
if ($_SESSION['adminType'] != 'user') {
showBladePacks('language');
}
break;
case 'bladeupgrade':
if ($_SESSION['adminType'] != 'user') {
showBladePacks('upgrade');
}
break;
case 'bladeinstall':
if ($_SESSION['adminType'] != 'user') {
bladepackInstall();
}
break;
case 'coresettings':
if ($_SESSION['adminType'] != 'user') {
coreSettings();
}
break;
case 'settingsman':
if ($_SESSION['adminType'] != 'user') {
bladeSettings();
}
break;
//.........这里部分代码省略.........
示例10: doDelete
/**
* execute the delete
*/
function doDelete()
{
/**
* is there a checker and does it allow delete?
*/
if (isset($this->deleteChecker)) {
if (!$this->deleteChecker->checkForDelete($this->menu->getMenuValues(), $this->dbMessage)) {
return 0;
}
}
if (hasCap($this->menu->requiredCap)) {
/* test if all keycolumn values are set */
$dq = new DeleteQuery($this->dbConn, $this->relation);
$dq->setKeyColumns($this->keyColumns);
$dq->setSubmitValueSet($_POST);
$dq->setUpdateSet($_POST);
/* leave an empty menu .. */
if ($dq->areKeyColumnsSet()) {
/* allow delete */
$query = $dq->getQuery();
$result = doDelete($this->dbConn, $query, $this->dbMessage);
if ($result > 0) {
$this->dbMessage .= $result . ' rows deleted';
} else {
$this->dbMessage .= ' delete failed';
}
$_GET = array();
$this->keyValues = array();
/* meuk */
} else {
$this->dbMessage .= 'DB ERROR: Delete failed.<br>Not all keyColumns have been set';
}
}
}
示例11: getallheaders
//$request->headers = processHeaders($headers);
$request->headers = getallheaders();
switch ($request->method) {
case 'GET':
doGet($request);
break;
case 'POST':
$request->body = file_get_contents('php://input');
doPost($request);
break;
case 'PUT':
$request->body = file_get_contents('php://input');
doPut($request);
break;
case 'DELETE':
doDelete($request);
break;
default:
echo $request->method, " not supported.\n";
break;
}
function doGet($request)
{
//echo '<pre>'; print_r($request); echo '</pre>';
echo "GET message received for ", $request->url;
}
function doPost($request)
{
//echo '<pre>'; print_r($request); echo '</pre>';
echo "POST message received: ", $request->body;
}
示例12: cleanPath
$width = (int) $HTTP_POST_VARS["width"];
}
}
// parse and clean the Path
cleanPath($path);
?>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<?php
// if CREATE is supported AND this is CREATE ...
if (SUPPORT_CREATE && !strcasecmp($action, "create")) {
// ... create the Folder
doCreate($folder);
} else {
if (SUPPORT_DELETE && !strcasecmp($action, "delete")) {
// ... delete the Folder/File
doDelete($file);
} else {
if (SUPPORT_UPLOAD && !strcasecmp($action, "upload")) {
// ... upload the Image
doUpload(basename($name), $width, $height, $aspect);
}
}
}
// list the Path
doList();
// emit the HTML
echo "<script language=\"javascript\">\n";
// if DELETE is supported ...
if (SUPPORT_DELETE) {
// ... emit the HTML
echo "function deletePath(path) {\n";
示例13: doUpdate
if ($status_ok && $gui->contextTprojectID == 0) {
// before this action there were ZERO test project on system
// need to update context
$gui->contextTprojectID = $op->id;
}
break;
case 'doUpdate':
$op = doUpdate($args, $tprojectMgr, $args->contextTprojectID);
$template = $op->status_ok ? null : $templateCfg->default_template;
$ui = $op->ui;
$status_ok = $op->status_ok;
$gui->user_feedback = $op->msg;
$gui->reloadType = $op->reloadType;
break;
case 'doDelete':
$op = doDelete($args, $tprojectMgr, $args->contextTprojectID);
$status_ok = $op->status_ok;
$gui->user_feedback = $op->msg;
$gui->reloadType = $op->reloadType;
$gui->contextTprojectID = $op->contextTprojectID;
break;
case 'toggleActive':
case 'togglePublic':
$status_ok = true;
$gui->user_feedback = '';
$method = $args->doAction;
$tprojectMgr->{$method}($gui->contextTprojectID);
break;
}
if ($doRender) {
$cmdMgr->renderGui($args, $gui, $op, $templateCfg, getCfg());
示例14: error_log
require_once 'DB/DataObject.php';
require_once 'DB/DataObject/FormBuilder.php';
error_log(print_r($_GET, true));
error_log(print_r($_POST, true));
switch ($op) {
case "list":
echo makeList($selfurl);
break;
case "add":
echo makeEditForm($selfurl);
break;
case "edit":
echo makeEditForm($selfurl, $_GET[id]);
break;
case "del":
doDelete($selfurl, $_POST[id]);
break;
}
function makeList($selfurl)
{
$html = "\n\t\t\t<h2>List/Manage/Delete SMS autosend</h2>\n\t\t\t<p/>\n\t\t\t<a href=\"{$selfurl}&op=add\">[ Add ]</a>\n\t\t\t<p/>";
// create hidden form with the
// id to delete, this way it will
// get POSTed
//
$formName = "delForm";
$html .= "\n\t\t\t<form name=\"{$formName}\" method=\"post\" action=\"{$selfurl}&op=del\">\n\t\t\t\t<input type=\"hidden\" name=\"id\" value=\"\"/>\n\t\t\t\t<script language=\"JavaScript\"><!--\n \t\t\t\t\tfunction del(id, msg) {\n\t\t\t\t\t\tif (confirm(msg)) {\n\t\t\t\t\t\t\tdocument.forms.{$formName}.id.value=id;\n\t\t\t\t\t\t\tdocument.forms.{$formName}.submit();\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t--></script>\n\t\t\t </form>";
// iterate through each item in the db
// and create a line for it
$item = DB_DataObject::factory(playsms_featAutoSend);
$item->find();