本文整理汇总了PHP中Plan::save_all方法的典型用法代码示例。如果您正苦于以下问题:PHP Plan::save_all方法的具体用法?PHP Plan::save_all怎么用?PHP Plan::save_all使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Plan
的用法示例。
在下文中一共展示了Plan::save_all方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: flash
$updatePlans->name = $_POST['name'];
$updatePlans->id = $_POST['id'];
$updatePlans->price = $_POST['price'];
$updatePlans->description = $_POST['description'];
$updatePlans->period = $_POST['period'];
$updatePlans->hidden = $_POST['hidden'];
if ($delete) {
$input->digits($delete, 'Deletion ID of Variable');
if ($plan->delete($delete)) {
flash("Plan (" . $delete . ") Deleted Successfully");
} else {
throw new Exception("The specified plan could not be removed.");
}
}
if (is_array($updatePlans->id) && $updatePlans->id[0]) {
$updatePlans->validate();
$updatePlans->save_all();
}
$plan->load_all();
include "../views/manageplans.php";
} catch (LoginException $e) {
$redirect = "welcome.php";
include "../views/login.php";
throw $e;
} catch (InputException $e) {
include "../views/manageplans.php";
throw $e;
} catch (Exception $e) {
include "../views/manageplans.php";
throw $e;
}