本文整理匯總了PHP中CMap::delete方法的典型用法代碼示例。如果您正苦於以下問題:PHP CMap::delete方法的具體用法?PHP CMap::delete怎麽用?PHP CMap::delete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CMap
的用法示例。
在下文中一共展示了CMap::delete方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: DBend
$result = CMap::create($map);
$result = DBend($result);
add_audit_if($result, AUDIT_ACTION_ADD, AUDIT_RESOURCE_MAP, 'Name [' . $_REQUEST['name'] . ']');
show_messages($result, S_MAP_ADDED, S_CANNOT_ADD_MAP);
}
if ($result) {
unset($_REQUEST['form']);
}
} else {
if (isset($_REQUEST['delete']) && isset($_REQUEST['sysmapid']) || $_REQUEST['go'] == 'delete') {
$sysmapids = get_request('maps', array());
if (isset($_REQUEST['sysmapid'])) {
$sysmapids[] = $_REQUEST['sysmapid'];
}
$maps = CMap::get(array('sysmapids' => $sysmapids, 'output' => API_OUTPUT_EXTEND, 'editable => 1'));
$go_result = CMap::delete($sysmapids);
show_messages($go_result, S_MAP_DELETED, S_CANNOT_DELETE_MAP);
if ($go_result) {
unset($_REQUEST['form']);
foreach ($maps as $map) {
add_audit_ext(AUDIT_ACTION_DELETE, AUDIT_RESOURCE_MAP, $map['sysmapid'], $map['name'], null, null, null);
}
}
}
}
if ($_REQUEST['go'] != 'none' && isset($go_result) && $go_result) {
$url = new CUrl();
$path = $url->getPath();
insert_js('cookie.eraseArray("' . $path . '")');
}
$form = new CForm(null, 'get');