[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/inc/collections/model/ -> _blog.funcs.php (sommaire)

This file implements Blog handling functions. This file is part of the evoCore framework - {@link http://evocore.net/} See also {@link http://sourceforge.net/projects/evocms/}.

Author: blueyed: Daniel HAHLER.
Author: fplanque: Francois PLANQUE.
Copyright: (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/}
Version: $Id: _blog.funcs.php,v 1.1 2007/06/25 10:59:32 fplanque Exp $
Poids: 522 lignes (17 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 5 fonctions

  blog_update_perms()
  blogperms_get_easy2()
  autoselect_blog()
  valid_blog_requested()
  set_working_blog()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

blog_update_perms( $blog, $context = 'user' )   X-Ref
Update the advanced user/group permissions for edited blog

param: int Blog ID
param: string 'user' or 'group'

blogperms_get_easy2( $perms, $context = 'user' )   X-Ref
Translates an given array of permissions to an "easy group".

USES OBJECT ROW

- nomember
- member
- editor (member+edit posts+delete+edit comments+all filemanager rights)
- administrator (editor+edit cats+edit blog)
- custom

param: array indexed, as the result row from "SELECT * FROM T_coll_user_perms"
return: string one of the five groups (nomember, member, editor, admin, custom)

autoselect_blog( $permname, $permlevel = 'any' )   X-Ref
Check permissions on a given blog (by ID) and autoselect an appropriate blog
if necessary.

For use in admin

NOTE: we no longer try to set $Blog inside of the function because later global use cannot be safely guaranteed in PHP4.

param: string Permission name that must be given to the {@link $current_User} object.
param: string Permission level that must be given to the {@link $current_User} object.
return: integer new selected blog

valid_blog_requested()   X-Ref
Check that we have received a valid blog param

For use in admin

set_working_blog( $new_blog_ID )   X-Ref
Set working blog to a new value and memorize it in user settings if needed.

For use in admin

return: boolean $blog changed?



Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics