当前位置: 首页>>代码示例>>PHP>>正文


PHP Releases::searchSimilar方法代码示例

本文整理汇总了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'])) {
开发者ID:RickDB,项目名称:newznab-tmux,代码行数:31,代码来源:details.php

示例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'];
开发者ID:ehsanguru,项目名称:nnplus,代码行数:31,代码来源:details.php


注:本文中的Releases::searchSimilar方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。