b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (Version 1.9) [ class tree: evocore ] [ index: evocore ] [ all elements ]

Procedural File: _blog.funcs.php

Source Location: /blogs/inc/MODEL/collections/_blog.funcs.php

Page Details

This file implements Blog handling functions.

This file is part of the evoCore framework - http://evocore.net/ See also http://sourceforge.net/projects/evocms/.

Author:  blueyed: Daniel HAHLER.
Author:  gorgeb: Bertrand GORGE / EPISTEMA
Author:  fplanque: Francois PLANQUE.
Author:  sakichan: Nobuo SAKIYAMA.
Version:  $Id: _blog.funcs.php,v 1.7.2.6 2006/11/13 20:50:27 fplanque Exp $
Copyright:  

(c)2003-2006 by Francois PLANQUE - http://fplanque.net/ Parts of this file are copyright (c)2004-2006 by Daniel HAHLER - http://thequod.de/contact.

Filesource:  Source Code for this file
Includes
require_once (dirname(__FILE__).'/_blogcache.class.php') [line 42]

Includes:

[ Top ]


Functions
autoselect_blog  [line 587]

integer autoselect_blog( integer $selectedBlog, string $permname, [string $permlevel = 'any']  )

Check permissions on a given blog (by ID) and autoselect an appropriate blog if necessary.

Parameters:
integer   $selectedBlog:  Pre-selected blog (usually blog GET param)
string   $permname:  Permission name that must be given to the $current_User object.
string   $permlevel:  Permission level that must be given to the $current_User object.

API Tags:
Return:  The selected blog (0 means failure).


[ Top ]
bloginfo  [line 493]

void bloginfo( [ $show = ''], [ $format = 'raw'], [ $display = true], [ $this_blogparams = '']  )

bloginfo(-)

Template tag

Parameters:
   $show: 
   $format: 
   $display: 
   $this_blogparams: 

API Tags:
Deprecated:  deprecated by Blog:disp()


[ Top ]
blogperms_from_easy  [line 367]

array blogperms_from_easy( string $easy_group  )
Parameters:
string   $easy_group:  "easy group": 'admin', 'editor', 'member'

API Tags:
Return:  indexed, as the result row from "SELECT * FROM T_coll_user_perms"


[ Top ]
blogperms_get_easy  [line 242]

string blogperms_get_easy( array $perms, [ $context = 'user']  )

Translates an given array of permissions to an "easy group".

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

Parameters:
array   $perms:  indexed, as the result row from "SELECT * FROM T_coll_user_perms"
   $context: 

API Tags:
Return:  one of the five groups (nomember, member, editor, admin, custom)


[ Top ]
blogperms_get_easy2  [line 309]

string blogperms_get_easy2( array $perms, [ $context = 'user']  )

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

Parameters:
array   $perms:  indexed, as the result row from "SELECT * FROM T_coll_user_perms"
   $context: 

API Tags:
Return:  one of the five groups (nomember, member, editor, admin, custom)


[ Top ]
Blog_get_by_ID  [line 439]

void Blog_get_by_ID( integer $blog_ID  )

Get Blog for specified ID

Parameters:
integer   $blog_ID:  ID of Blog we want

Information Tags:
Todo:  on a heavy multiblog system, cache them one by one...
Todo:  move over to BlogCache?!

[ Top ]
blog_list_iteminfo  [line 563]

void blog_list_iteminfo( $what, [ $show = 'raw']  )

blog_list_iteminfo(-)

Display info about item

fplanque: created

Parameters:
   $what: 
   $show: 


[ Top ]
blog_list_next  [line 535]

void blog_list_next( [ $need = '']  )

Next blog iteration

blog_list_next(-)

Parameters:
   $need: 


[ Top ]
blog_list_start  [line 509]

void blog_list_start( [ $need = '']  )

Start blog iterator

blog_list_start(-)

Parameters:
   $need: 


[ Top ]
blog_load_cache  [line 459]

void blog_load_cache( )

Information Tags:
Todo:  fp> this needs to be deprecated
Todo:  fp> get rid of the $cache_blogs crap and use $BlogCache only

[ Top ]
blog_update_group_perms  [line 145]

void blog_update_group_perms( int $blog  )

Update the group permissions for edited blog

Parameters:
int   $blog:  Blog ID


[ Top ]
blog_update_user_perms  [line 50]

void blog_update_user_perms( int $blog  )

Update the user permissions for edited blog

Parameters:
int   $blog:  Blog ID


[ Top ]
get_bloginfo  [line 411]

void get_bloginfo( [ $show = ''], [ $this_blogparams = '']  )

get_bloginfo(-)

Parameters:
   $show: 
   $this_blogparams: 

API Tags:
Deprecated:  deprecated by Blog::get() This is now a dirty stub


[ Top ]


Documentation generated on Tue, 18 Dec 2007 19:11:10 +0100 by phpDocumentor 1.4.0