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


PHP Movie::getMovieCount方法代码示例

本文整理汇总了PHP中Movie::getMovieCount方法的典型用法代码示例。如果您正苦于以下问题:PHP Movie::getMovieCount方法的具体用法?PHP Movie::getMovieCount怎么用?PHP Movie::getMovieCount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Movie的用法示例。


在下文中一共展示了Movie::getMovieCount方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

    $page->show403();
}
$moviecats = $cat->getChildren(Category::CAT_PARENT_MOVIE);
$mtmp = array();
foreach ($moviecats as $mcat) {
    $mtmp[$mcat['ID']] = $mcat;
}
$category = Category::CAT_PARENT_MOVIE;
if (isset($_REQUEST["t"]) && array_key_exists($_REQUEST['t'], $mtmp)) {
    $category = $_REQUEST["t"] + 0;
}
$catarray = array();
$catarray[] = $category;
$page->smarty->assign('catlist', $mtmp);
$page->smarty->assign('category', $category);
$browsecount = $movie->getMovieCount($catarray, -1, $page->userdata["categoryexclusions"]);
$offset = isset($_REQUEST["offset"]) && ctype_digit($_REQUEST['offset']) ? $_REQUEST["offset"] : 0;
$ordering = $movie->getMovieOrdering();
$orderby = isset($_REQUEST["ob"]) && in_array($_REQUEST['ob'], $ordering) ? $_REQUEST["ob"] : '';
$results = $movies = array();
$results = $movie->getMovieRange($catarray, $offset, ITEMS_PER_PAGE, $orderby, -1, $page->userdata["categoryexclusions"]);
foreach ($results as $result) {
    $result['genre'] = $movie->makeFieldLinks($result, 'genre');
    $result['actors'] = $movie->makeFieldLinks($result, 'actors');
    $result['director'] = $movie->makeFieldLinks($result, 'director');
    $movies[] = $result;
}
$title = isset($_REQUEST['title']) && !empty($_REQUEST['title']) ? stripslashes($_REQUEST['title']) : '';
$page->smarty->assign('title', $title);
$actors = isset($_REQUEST['actors']) && !empty($_REQUEST['actors']) ? stripslashes($_REQUEST['actors']) : '';
$page->smarty->assign('actors', $actors);
开发者ID:nubzzz,项目名称:newznab,代码行数:31,代码来源:movies.php

示例2: Movie

 }
 if (isset($_GET['iDisplayStart'])) {
     $start = $_GET['iDisplayStart'];
 } else {
     $start = 0;
 }
 $movie = new Movie();
 if (isset($_GET['sSearch']) && $_GET['sSearch']) {
     $movies = $movie->getList(null, $start, $per_page, $sortby, $sortdir, $_GET['sSearch']);
 } else {
     $movies = $movie->getList(null, $start, $per_page, $sortby, $sortdir);
 }
 $res = array();
 $res['sEcho'] = $echo;
 if (isset($_GET['sSearch']) && $_GET['sSearch']) {
     $res['iTotalDisplayRecords'] = $movie->getMovieCount($_GET['sSearch']);
 } else {
     $res['iTotalDisplayRecords'] = $movie->getMovieCount();
 }
 $res['iTotalRecords'] = count($movies);
 $res['aaData'] = array();
 if (count($movies)) {
     foreach ($movies as $key => $val) {
         extract($val);
         if (strlen($description[$default_language]) > 100) {
             $description[$default_language] = substr($description[$default_language], 0, 97) . "...";
         }
         $res['aaData'][] = array('<input type="checkbox" name="row_sel" class="row_sel" value="' . $key . '" id="movie_checkbox_' . $key . '" />', '<a href="' . $baseurl . '/thumbs/' . $thumb . '" title="" class="cbox_single thumbnail"><img alt="" src="' . $baseurl . '/thumbs/' . $thumb . '" style="height:70px;width:50px"></a>', '<a href="http://www.imdb.com/title/' . $imdb_id . '" target="_blank">' . $imdb_id . '</a>', $title[$default_language], $description[$default_language], $embed_count, '<a href="javascript:void(0);" onClick="deleteMovie(' . $key . ')">Delete</a>', '<a href="index.php?menu=movies_new&movie_id=' . $key . '">Edit</a>');
     }
 }
 print json_encode($res);
开发者ID:kvox,项目名称:TVSS,代码行数:31,代码来源:movies_paginate.php


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