本文整理汇总了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;
}