本文整理匯總了PHP中DBManager::move方法的典型用法代碼示例。如果您正苦於以下問題:PHP DBManager::move方法的具體用法?PHP DBManager::move怎麽用?PHP DBManager::move使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DBManager
的用法示例。
在下文中一共展示了DBManager::move方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: DBManager
} else {
if (strtolower($newLocation) == 'hr') {
$Numericallocation = 5;
} else {
if (strtolower($newLocation) == 'bossoffice') {
$Numericallocation = 6;
} else {
if (strtolower($newLocation) == 'lobby') {
$Numericallocation = 7;
} else {
if (strtolower($newLocation) == 'copyroom') {
$Numericallocation = 8;
} else {
$Numericallocation = 9;
}
}
}
}
}
}
}
}
}
$dbManager->move($Numericallocation);
echo $newLocation;
}
if (isset($_POST["blah"])) {
$dbManager = new DBManager();
$playerID = $dbManager->setPlayer(1);
echo $dbManager->getMinutes();
}
示例2: DBManager
<!DOCTYPE html>
<?php
require_once '../controllers/dbmanager.php';
require_once '../models/room.php';
$dbManager = new DBManager();
$location = Room::IT;
// Get the tasks based off a location
// $locationTaskList = $dbManager->fetchTaskList($location);
// var_dump($locationTaskList);
// echo "</br>";
$playerID = $dbManager->setPlayer(2);
echo "Player ID: " . $playerID . "</br>";
$dbManager->move($location);
?>
<html>
<head>
<title>DB Test</title>
</head>
<body>
</body>
</html>