本文整理汇总了PHP中Releases::getComments方法的典型用法代码示例。如果您正苦于以下问题:PHP Releases::getComments方法的具体用法?PHP Releases::getComments怎么用?PHP Releases::getComments使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Releases
的用法示例。
在下文中一共展示了Releases::getComments方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Releases
require_once WWW_DIR . "/lib/tvrage.php";
if (!$users->isLoggedIn()) {
$page->show403();
}
if (isset($_GET["id"])) {
$releases = new Releases();
$tvrage = new TvRage();
$data = $releases->getByGuid($_GET["id"]);
if (!$data) {
$page->show404();
}
if ($page->isPostBack()) {
$releases->addComment($data["ID"], $_POST["txtAddComment"], $users->currentUserId(), $_SERVER['REMOTE_ADDR']);
}
$nfo = $releases->getReleaseNfo($data["ID"], false);
$comments = $releases->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'])) {