本文整理汇总了PHP中Releases::searchSimilar方法的典型用法代码示例。如果您正苦于以下问题:PHP Releases::searchSimilar方法的具体用法?PHP Releases::searchSimilar怎么用?PHP Releases::searchSimilar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Releases
的用法示例。
在下文中一共展示了Releases::searchSimilar方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Releases
$releases = new Releases(['Settings' => $page->settings]);
$rc = new ReleaseComments();
$re = new ReleaseExtra();
$data = $releases->getByGuid($_GET["id"]);
if (!$data) {
$page->show404();
}
if ($page->isPostBack()) {
$rc->addComment($data["id"], $data["gid"], $_POST["txtAddComment"], $page->users->currentUserId(), $_SERVER['REMOTE_ADDR']);
}
$nfo = $releases->getReleaseNfo($data["id"], false);
$reVideo = $re->getVideo($data["id"]);
$reAudio = $re->getAudio($data["id"]);
$reSubs = $re->getSubs($data["id"]);
$comments = $rc->getCommentsByGid($data["gid"]);
$similars = $releases->searchSimilar($data['id'], $data['searchname'], 6, $page->userdata['categoryexclusions']);
$rage = '';
if ($data["rageid"] != '') {
$tvrage = new TvRage();
$rageinfo = $tvrage->getByRageID($data["rageid"]);
if (count($rageinfo) > 0) {
$seriesnames = $seriesdescription = $seriescountry = $seriesgenre = $seriesimg = $seriesid = [];
foreach ($rageinfo as $r) {
$seriesnames[] = $r['releasetitle'];
if (!empty($r['description'])) {
$seriesdescription[] = $r['description'];
}
if (!empty($r['country'])) {
$seriescountry[] = $r['country'];
}
if (!empty($r['genre'])) {
示例2: ReleaseExtra
$re = new ReleaseExtra();
$tvrage = new TvRage();
$AniDB = new AniDB();
$data = $releases->getByGuid($_GET["id"]);
if (!$data) {
$page->show404();
}
if ($page->isPostBack()) {
$rc->addComment($data["ID"], $_POST["txtAddComment"], $users->currentUserId(), $_SERVER['REMOTE_ADDR']);
}
$nfo = $releases->getReleaseNfo($data["ID"], false);
$reVideo = $re->getVideo($data["ID"]);
$reAudio = $re->getAudio($data["ID"]);
$reSubs = $re->getSubs($data["ID"]);
$comments = $rc->getComments($data["ID"]);
$similars = $releases->searchSimilar($data["ID"], $data["searchname"], 6, $page->userdata["categoryexclusions"]);
$rage = '';
if ($data["rageID"] != '') {
$rageinfo = $tvrage->getByRageID($data["rageID"]);
if (count($rageinfo) > 0) {
$seriesnames = $seriesdescription = $seriescountry = $seriesgenre = $seriesimg = $seriesid = array();
foreach ($rageinfo as $r) {
$seriesnames[] = $r['releasetitle'];
if (!empty($r['description'])) {
$seriesdescription[] = $r['description'];
}
if (!empty($r['country'])) {
$seriescountry[] = $r['country'];
}
if (!empty($r['genre'])) {
$seriesgenre[] = $r['genre'];