本文整理汇总了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"])) {
示例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);
}