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


PHP Dashboard::getAddonLikeCount方法代碼示例

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


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

示例1: Dashboard

 * Copyright (c) 2016 AvikB, some rights reserved.
 *  Copyright under Creative Commons Attribution-ShareAlike 3.0 Unported,
 *  for details visit: https://creativecommons.org/licenses/by-sa/3.0/
 *  
 * @Contributors:
 * Created by AvikB for noncommercial MusicBee project.
 *  Spelling mistakes and fixes from community members.
 *
 */
$no_guests = true;
//kick off the guests
require_once $_SERVER['DOCUMENT_ROOT'] . '/functions.php';
include $link['root'] . 'classes/Dashboard.php';
$dashboard = new Dashboard();
$stat['total_download'] = $dashboard->getAddonDownloadCount($mb['user']['id']);
$stat['total_likes'] = $dashboard->getAddonLikeCount($mb['user']['id']);
$stat['total_addon_submitted'] = $dashboard->getAllAddonByMember($mb['user']['id']);
$stat['total_unapproved_addon'] = $dashboard->getAllAddonCountByStatusAndMember($mb['user']['id'], 0);
$stat['top_voted_addon'] = $dashboard->getTopVotedAddonsByAuthor($mb['user']['id'], 10);
$stat['top_downloaded_addon'] = $dashboard->getMostDownloadedAddonsByAuthor($mb['user']['id'], 10);
$stat['unapproved_addons'] = array_slice($dashboard->getAllUnApprovedAddons(), 0, 10);
?>

<div
	class="main_content_wrapper col_1_2">
	<div class="sub_content_wrapper">
		<div class="box_content">
			<span
				class="show_info custom">
				<h3><?php 
echo $lang['dashboard_5'];
開發者ID:Avik-B,項目名稱:musicbee-website,代碼行數:31,代碼來源:dashboard.overview.template.php

示例2: Dashboard

 *  for details visit: https://creativecommons.org/licenses/by-sa/3.0/
 *  
 * @Contributors:
 * Created by AvikB for noncommercial MusicBee project.
 *  Spelling mistakes and fixes from community members.
 *
 */
$json_response = true;
$no_guests = true;
//kick off the guests
$mod_only = true;
require_once $_SERVER['DOCUMENT_ROOT'] . '/functions.php';
include $link['root'] . 'classes/Dashboard.php';
$dashboard = new Dashboard();
$stat['total_download'] = $dashboard->getAddonDownloadCount(null);
$stat['total_likes'] = $dashboard->getAddonLikeCount(null);
$stat['total_addon'] = $dashboard->getAllAddonCount();
$stat['total_unapproved_addon'] = $dashboard->getAllAddonCountByStatus(0);
$stat['total_rejected_addon'] = $dashboard->getAllAddonCountByStatus(2);
$stat['total_softdeleted_addon'] = $dashboard->getAllAddonCountByStatus(3);
$stat['total_members'] = $dashboard->getAllMemberCount();
$stat['total_addon_publisher'] = $dashboard->getAllAddonPublisherCount();
?>
<div class="main_content_wrapper col_2">
	<div class="sub_content_wrapper">
		<div class="box_content">
			<div class="show_info info_silver custom">
				<h3><?php 
echo $lang['mod_11'];
?>
</h3>
開發者ID:Avik-B,項目名稱:musicbee-website,代碼行數:31,代碼來源:mod.view.template.php


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