當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Parse::id方法代碼示例

本文整理匯總了PHP中Parse::id方法的典型用法代碼示例。如果您正苦於以下問題:PHP Parse::id方法的具體用法?PHP Parse::id怎麽用?PHP Parse::id使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Parse的用法示例。


在下文中一共展示了Parse::id方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

}

// Check if Undo Retention has been configured.
$flag_snapshot_retention_dirty = FALSE;
$result = $snapshot->fetch_retention($conn_db);
if ($result != SNAPSHOT_RETENTION) {
    $flag_snapshot_retention_dirty = TRUE;
}


/***
 *** Sanitize
 ***/

if (isset($_REQUEST["customer_id"])) {
    $customer_id = $parse->id($_REQUEST["customer_id"]);
    $error->check();
}
if (isset($_REQUEST["customer_name"])) {
    $customer_name = $parse->id($_REQUEST["customer_name"]);
    $error->check();
}
if (isset($_REQUEST["customer_password"])) {
    $customer_password = $parse->password($_REQUEST["customer_password"]);
    $error->check();
}
if (isset($_REQUEST["consumer_group"])) {
    $consumer_group = $parse->select($_REQUEST["consumer_group"], $array_consumer_group);
    $error->check();
}
if (isset($_REQUEST["max_gbytes"])) {
開發者ID:nkjm,項目名稱:oracle-database-demonstration,代碼行數:31,代碼來源:op.php

示例2:

// Check if Plan has been enabled.
$result = $resource->status_resource_plan($conn_db, RESOURCE_PLAN);
if ($result == 'DISABLED') {
    $op = 'initialize';
    $flag_resource_plan_disabled = TRUE;
}

// Sanitize
if (isset($_REQUEST["confirmed"])) {
    $confirmed = TRUE;
} else {
    $confirmed = FALSE;
}
if (isset($_REQUEST["customer_id"])) {
    $customer_id = $parse->id($_REQUEST["customer_id"]);
    err_chk($customer_id, $parse->err_msg);
}
if (isset($_REQUEST["customer_password"])) {
    $customer_password = $parse->password($_REQUEST["customer_password"]);
    err_chk($customer_password, $parse->err_msg);
}
if (isset($_REQUEST["consumer_group"])) {
    $consumer_group = $parse->select($_REQUEST["consumer_group"], $array_consumer_group);
    err_chk($consumer_group, $parse->err_msg);
}
if (isset($_REQUEST["disk_type"])) {
    $array_flipped_disk_type = array_flip($array_disk_type);
    $disk_type = $parse->select($_REQUEST["disk_type"], $array_flipped_disk_type);
    err_chk($disk_type, $parse->err_msg);
}
開發者ID:nkjm,項目名稱:Oracle-Database-Cloud,代碼行數:30,代碼來源:index.php


注:本文中的Parse::id方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。