本文整理汇总了PHP中Parse::select方法的典型用法代码示例。如果您正苦于以下问题:PHP Parse::select方法的具体用法?PHP Parse::select怎么用?PHP Parse::select使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Parse
的用法示例。
在下文中一共展示了Parse::select方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
***/
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"])) {
$max_gbytes = $parse->max_gbytes($_REQUEST["max_gbytes"]);
$error->check();
}
if (isset($_REQUEST["compression"])) {
$compression = $parse->select($_REQUEST["compression"], $array_compression);
$error->check();
}
if (isset($_REQUEST["disk_path"])) {
$disk_path = $parse->disk_path($_REQUEST["disk_path"]);
$error->check();
}
if (isset($_REQUEST["ss_protection_mode"])) {
示例2: Role
// 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);
}
switch ($op) {
case 'initialize':
if ($confirmed == TRUE) {
$role = new Role();
$resource = new Resource();