[ 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/dao/ -> blogcategories.class.php (sommaire)

(pas de description)

Poids: 156 lignes (4 kb)
Inclus ou requis:0 fois
Référencé: 11 fois
Nécessite: 0 fichiers

Définit 1 class

BlogCategories:: (10 méthodes):
  BlogCategories()
  getBlogCategory()
  addBlogCategory()
  deleteBlogCategory()
  updateBlogCategory()
  getNumBlogCategories()
  getBlogCategories()
  getNumBlogsCategory()
  getSearchConditions()
  mapRow()


Classe: BlogCategories  - X-Ref

\ingroup DAO

Provides an interface for working with BlogCategory objects
BlogCategories()   X-Ref
Pas de description

getBlogCategory( $id )   X-Ref
loads the given blog category

param: id
return: false if there was an error loading or a BlogCategory object if it was found

addBlogCategory( &$category )   X-Ref
adds a new blog category

param: category A BlogCategory object
return: true if successful or false otherwise. Upon success, $category->getId() will

deleteBlogCategory( $id )   X-Ref
deletes a blog category. Warning: the upper layers must have already made sure that there
are no blogs that point to this blog categories *before* removing it, or else we could have
problems with data integrity.

param: id
return: True if successful, false otherwise

updateBlogCategory( $category )   X-Ref
update a given blog category

param: category A BlogCategory object
return: True if successful or false otherwise

getNumBlogCategories( $searchTerms = "" )   X-Ref
returns the total amount of blog categories in the database

return: an integer

getBlogCategories( $searchTerms = "", $page = -1, $itemsPerPage = DEFAULT_ITEMS_PER_PAGE )   X-Ref
returns all blog categories

param: searchTerms        
param: page
param: itemsPerPage
return: An array of BlogCategory objects or false in case of error

getNumBlogsCategory( $categoryId, $status = BLOG_STATUS_ALL )   X-Ref
returns how many blogs have been categorized under this category

param: categoryId
param: blogStatus
return: an integer

getSearchConditions( $searchTerms )   X-Ref


mapRow( $row )   X-Ref




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