本文整理匯總了PHP中Schedule::update方法的典型用法代碼示例。如果您正苦於以下問題:PHP Schedule::update方法的具體用法?PHP Schedule::update怎麽用?PHP Schedule::update使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Schedule
的用法示例。
在下文中一共展示了Schedule::update方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: editscheduleAction
public function editscheduleAction()
{
try {
$this->checkLogin();
$schedule = new Schedule();
$schedule->update($this->request->getPost());
header("Location: " . ROOT_URL . "/admin/finish/");
} catch (Exception $e) {
$this->displayErrorView($e->getMessage());
}
}
示例2: Schedule
include "large_menu.php";
/*include("small_menu_start.php");*/
?>
<!-- MAIN SECTION -->
<section class="main-section">
<div class="small-12 columns">
<div class="row">
<h4>horaire - <?php
$schedule = new Schedule();
if (isset($_POST["date"])) {
$schedule->initProperty($_POST["MyId"], $_POST["seasonId"], $_POST["categoryId"], $_POST["teamId"], $_POST["awayTeamId"], isset($_POST["tpHome"]) ? 1 : 0, strtotime($_POST["date"]), $_POST["stade"], $_POST["city"], $_POST["refereeId1"], $_POST["refereeId2"], $_POST["refereeId3"], $_POST["refereeId4"], $_POST["markerId1"], $_POST["markerId2"], $_POST["pointTp"], $_POST["pointAwayTeam"], $mySql);
$schedule->PageMode = $_POST["pageMode"];
$schedule->validate($mySql);
if (!$schedule->getHasError()) {
if ($schedule->PageMode == Constants::PAGE_MODE_EDIT) {
$schedule->update($mySql);
} else {
$schedule->addNew($mySql);
}
}
header('Location: schedule.php');
exit;
} else {
if (isset($_GET["id"])) {
$schedule->initDB($_GET["id"], $mySql);
echo date("Y-m-d H:i", $schedule->Date);
$schedule->PageMode = Constants::PAGE_MODE_EDIT;
} else {
echo "[Nouvelle]";
$schedule->PageMode = Constants::PAGE_MODE_ADD;
}
示例3: updateDays
public function updateDays()
{
Schedule::update();
$this->viewDetailSchedule();
}