當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Paginator::execute方法代碼示例

本文整理匯總了PHP中Paginator::execute方法的典型用法代碼示例。如果您正苦於以下問題:PHP Paginator::execute方法的具體用法?PHP Paginator::execute怎麽用?PHP Paginator::execute使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Paginator的用法示例。


在下文中一共展示了Paginator::execute方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: pagination

 function pagination($url = null)
 {
     $sql = "SELECT id, first_name, last_name, role, email, active, gender, profile_image,fb_id, created_on FROM user ORDER BY created_on DESC";
     $table_page = PATH_ADMIN_VIEWS . "user/paginator/row.php";
     $paginator = new \Paginator();
     $paginator->execute($sql, $table_page, $url);
 }
開發者ID:sks40gb,項目名稱:jnv,代碼行數:7,代碼來源:UserModel.php

示例2: pagination

 function pagination($url = null)
 {
     $sql = "SELECT p.id AS id, p.title AS title, c.type AS type , c.name AS category_name, NULL AS comments, \n            p.posted_at AS posted_at, p.publish AS publish, u.first_name AS posted_by,\n            img.thumb_small as thumb_small, img.original as original         \n            FROM post p \n            LEFT JOIN post_category c ON p.post_category_id = c.id\n            LEFT JOIN user u ON p.user_id = u.id\n            LEFT JOIN image img ON img.id = p.banner_image";
     if (!\SKS\LIB\Session::isSuperAdmin()) {
         $sql .= " WHERE u.id = " . \SKS\LIB\Session::getLoggedInUser()->getId();
     }
     $table_page = PATH_ADMIN_VIEWS . "publish/paginator/row.php";
     $paginator = new \Paginator();
     $paginator->execute($sql, $table_page, $url);
 }
開發者ID:sks40gb,項目名稱:jnv,代碼行數:10,代碼來源:PublishModel.php

示例3: pagination

 function pagination($url = null)
 {
     $sql = "SELECT i.id AS id, `name`, size, `from`,`date`, original, thumb_small, thumb_medium, thumb_big, u.id AS user_id, u.first_name AS uploaded_by, i.active as active " . " FROM image i LEFT JOIN user u ON u.id = i.user_id ";
     if (\SKS\LIB\Session::isAuthor()) {
         $sql .= " WHERE u.id = " . \SKS\LIB\Session::getLoggedInUser()->getId();
     }
     $sql .= "  ORDER BY date DESC ";
     $table_page = PATH_ADMIN_VIEWS . "gallery/paginator/row.php";
     $paginator = new \Paginator();
     $paginator->execute($sql, $table_page, $url);
 }
開發者ID:sks40gb,項目名稱:jnv,代碼行數:11,代碼來源:GalleryModel.php


注:本文中的Paginator::execute方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。