本文整理匯總了PHP中Vendor::initiallize_Vendor_Data方法的典型用法代碼示例。如果您正苦於以下問題:PHP Vendor::initiallize_Vendor_Data方法的具體用法?PHP Vendor::initiallize_Vendor_Data怎麽用?PHP Vendor::initiallize_Vendor_Data使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Vendor
的用法示例。
在下文中一共展示了Vendor::initiallize_Vendor_Data方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: unset
if ($db_add_vendor->add_Vendor($add_vendor)) {
unset($_SESSION["vendor_creation_form_details"]);
header("Location: " . VIEW_PATH . "vendor_operations.php?vendor_add_result=sucess");
exit;
} else {
header("Location: " . VIEW_PATH . "vendor_operations.php?vendor_add_result=error");
exit;
}
} else {
header("Location: " . VIEW_PATH . "vendor_operations.php?survey_create_err=" . $validated);
exit;
}
}
if (isset($_POST) && isset($_POST["modify_vendor"])) {
$modify_vendor = new Vendor($_POST);
$modify_vendor->initiallize_Vendor_Data($_POST);
$validated = $modify_vendor->validate_Form_Data();
if ($validated == "No_ERROR") {
$db_modify_vendor = new DB_Vendor();
if ($db_modify_vendor->modify_Vendor($modify_vendor, $_POST["vendor_id"])) {
unset($_SESSION["vendor_creation_form_details"]);
header("Location: " . VIEW_PATH . "modify_vendor_details.php?vendor_id=" . $_POST["vendor_id"] . "&vendor_modify_result=sucess");
exit;
} else {
header("Location: " . VIEW_PATH . "modify_vendor_details.php?vendor_id=" . $_POST["vendor_id"] . "&vendor_modify_result=error");
exit;
}
} else {
header("Location: " . VIEW_PATH . "modify_vendor_details.php?vendor_id=" . $_POST["vendor_id"] . "&vendor_modify_err=" . $validated);
exit;
}