本文整理汇总了PHP中Console::getConsoleInfo方法的典型用法代码示例。如果您正苦于以下问题:PHP Console::getConsoleInfo方法的具体用法?PHP Console::getConsoleInfo怎么用?PHP Console::getConsoleInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Console
的用法示例。
在下文中一共展示了Console::getConsoleInfo方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Musik
$game = $g->getGamesInfo($data['gamesinfo_id']);
}
$mus = '';
if ($data['musicinfoid'] != '') {
$music = new Musik(['Settings' => $page->settings]);
$mus = $music->getMusicInfo($data['musicinfoid']);
}
$book = '';
if ($data['bookinfoid'] != '') {
$b = new Book();
$book = $b->getBookInfo($data['bookinfoid']);
}
$con = '';
if ($data['consoleinfoid'] != '') {
$c = new Console();
$con = $c->getConsoleInfo($data['consoleinfoid']);
}
$AniDBAPIArray = '';
if ($data["anidbid"] > 0) {
$AniDB = new AniDB(['Settings' => $releases->pdo]);
$AniDBAPIArray = $AniDB->getAnimeInfo($data["anidbid"]);
}
$predbQuery = '';
if ($data["preid"] > 0) {
$PreDB = new PreDB();
$predbQuery = $PreDB->getByID($data["preid"]);
}
$prehash = new PreHash();
$pre = $prehash->getForRelease($data["prehashid"]);
$rf = new ReleaseFiles();
$releasefiles = $rf->get($data["id"]);
示例2: Console
<?php
if (!$page->users->isLoggedIn()) {
$page->show403();
}
if (isset($_GET["id"]) && ctype_digit($_GET["id"])) {
$console = new Console(['Settings' => $page->settings]);
$con = $console->getConsoleInfo($_GET['id']);
if (!$con) {
$page->show404();
}
$page->smarty->assign('console', $con);
$page->title = "Info for " . $con['title'];
$page->meta_title = "";
$page->meta_keywords = "";
$page->meta_description = "";
$page->smarty->registerPlugin('modifier', 'ss', 'stripslashes');
$modal = false;
if (isset($_GET['modal'])) {
$modal = true;
$page->smarty->assign('modal', true);
}
$page->content = $page->smarty->fetch('viewconsole.tpl');
if ($modal) {
echo $page->content;
} else {
$page->render();
}
}
示例3: AdminPage
<?php
require_once "config.php";
$page = new AdminPage();
$console = new Console();
$gen = new Genres();
$id = 0;
// set the current action
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view';
if (isset($_REQUEST["id"])) {
$id = $_REQUEST["id"];
$con = $console->getConsoleInfo($id);
if (!$con) {
$page->show404();
}
switch ($action) {
case 'submit':
$coverLoc = WWW_DIR . "covers/console/" . $id . '.jpg';
if ($_FILES['cover']['size'] > 0) {
$tmpName = $_FILES['cover']['tmp_name'];
$file_info = getimagesize($tmpName);
if (!empty($file_info)) {
move_uploaded_file($_FILES['cover']['tmp_name'], $coverLoc);
}
}
$_POST['cover'] = file_exists($coverLoc) ? 1 : 0;
$_POST['salesrank'] = empty($_POST['salesrank']) || !ctype_digit($_POST['salesrank']) ? "null" : $_POST['salesrank'];
$_POST['releasedate'] = empty($_POST['releasedate']) || !strtotime($_POST['releasedate']) ? $con['releasedate'] : date("Y-m-d H:i:s", strtotime($_POST['releasedate']));
$console->update($id, $_POST["title"], $_POST['asin'], $_POST['url'], $_POST["salesrank"], $_POST["platform"], $_POST["publisher"], $_POST["releasedate"], $_POST["esrb"], $_POST["cover"], $_POST["genre"]);
header("Location:" . WWW_TOP . "/console-list.php");
die;