当前位置: 首页>>代码示例>>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;未经允许,请勿转载。