本文整理汇总了PHP中Releases::searchbytvinfoId方法的典型用法代码示例。如果您正苦于以下问题:PHP Releases::searchbytvinfoId方法的具体用法?PHP Releases::searchbytvinfoId怎么用?PHP Releases::searchbytvinfoId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Releases
的用法示例。
在下文中一共展示了Releases::searchbytvinfoId方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Releases
require_once WWW_DIR . "/lib/userseries.php";
$releases = new Releases();
$tvinfo = new TvInfo();
$cat = new Category();
$us = new UserSeries();
if (!$users->isLoggedIn()) {
$page->show403();
}
if (isset($_GET["id"]) && ctype_digit($_GET['id'])) {
$category = -1;
if (isset($_REQUEST["t"]) && ctype_digit($_REQUEST["t"])) {
$category = $_REQUEST["t"];
}
$catarray = array();
$catarray[] = $category;
$rel = $releases->searchbytvinfoId($_GET["id"], '', '', 0, 1000, "", $catarray, -1);
$tvinforow = $tvinfo->getByID($_GET['id']);
$page->smarty->assign('tvinforow', $tvinforow);
if (!$tvinforow) {
$page->show404();
} elseif (!$rel) {
$page->smarty->assign("nodata", "No releases for this series.");
} else {
$myshows = $us->getShow($users->currentUserId(), $_GET['id']);
//sort releases by season, episode, date posted
$season = $episode = $posted = array();
foreach ($rel as $rlk => $rlv) {
$season[$rlk] = $rlv['season'];
$episode[$rlk] = $rlv['episode'];
$posted[$rlk] = $rlv['postdate'];
}