本文整理匯總了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'];