[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/summary/dao/ -> summarystats.class.php (sommaire)

(pas de description)

Poids: 400 lignes (13 kb)
Inclus ou requis:0 fois
Référencé: 2 fois
Nécessite: 0 fichiers

Définit 1 class

SummaryStats:: (11 méthodes):
  SummaryStats()
  getMostCommentedArticles()
  getMostReadArticles()
  getRecentBlogs()
  getMostActiveBlogs()
  getRecentArticles()
  getPostsByGlobalCategory()
  getNumPostsByGlobalCategory()
  getNow()
  getStartTime()
  getUserRecentArticles()


Classe: SummaryStats  - X-Ref

This class implements a few methods that can be used to obtain the list of most recent blogs, posts, commets,
most commented articles, etc. It is mainly used by the summary.php script but it can also be used by users
wishing to integrate the summary page in their sites.

SummaryStats()   X-Ref
Pas de description

getMostCommentedArticles( $maxPosts = 0 )   X-Ref
Returns the most commented articles so far

param: maxPosts The maximum number of posts to return
return: An array of Article objects with the most commented articles

getMostReadArticles( $maxPosts = 0 )   X-Ref
Returns an array with the most read articles

param: maxPosts The maximum number of posts to return
return: an array of Article objects with information about the posts

getRecentBlogs( $maxBlogs = 0 )   X-Ref
returns  list with the most recently created blogs

param: maxBlogs The maximum number of blogs to return, or '0' to get all of them
return: An array of BlogInfo objects

getMostActiveBlogs( $maxBlogs = 0 )   X-Ref
returns an array with the most active blogs

param: maxBlogs How many blogs to return
return: An array of BlogInfo objects

getRecentArticles( $globaArticleCategoryId = ALL_GLOBAL_ARTICLE_CATEGORIES, $maxPosts = 0 )   X-Ref
returns a list with the most recent articles, but only one per blog so that
one blog cannot clog the whole main page because they've posted 100 posts today. Posts that were posted
in categories not shown in the main page of each blog will not be shown!

param: maxPosts The maximum number of posts to return
return: An array of Article objects with the most recent articles.

getPostsByGlobalCategory( $globaArticleCategoryId = ALL_GLOBAL_ARTICLE_CATEGORIES, $page = -1, $itemsPerPage = SUMMARY_DEFAULT_ITEMS_PER_PAGE )   X-Ref
Pas de description

getNumPostsByGlobalCategory( $globaArticleCategoryId = ALL_GLOBAL_ARTICLE_CATEGORIES )   X-Ref
Pas de description

getNow()   X-Ref


getStartTime( $duration )   X-Ref


getUserRecentArticles( $userId, $maxPosts = 10 )   X-Ref
Returns all the most recently posted articles by the given user id

param: userId
param: maxPosts
return: An Array of Article objects



Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics