b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (Version 1.8) [ 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.5.2.2 2006/07/02 00:30:58 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 41]

Includes:

[ Top ]


Functions
autoselect_blog  [line 670]

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 575]

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 433]

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 308]

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 375]

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_create  [line 51]

void blog_create( $blog_name, $blog_shortname, $blog_siteurl, $blog_stub, [ $blog_staticfilename = ''], [ $blog_tagline = ''], [ $blog_description = ''], [ $blog_longdesc = ''], [ $blog_locale = '#'], [ $blog_notes = ''], [ $blog_keywords = ''], [ $blog_links_blog_ID = 0], [ $blog_UID = ''], [ $blog_allowcomments = 'post_by_post'], [ $blog_allowtrackbacks = 1], [ $blog_allowpingbacks = 0], [ $blog_pingb2evonet = 0], [ $blog_pingtechnorati = 0], [ $blog_pingweblogs = 1], [ $blog_pingblodotgs = 0], [ $blog_disp_bloglist = 1], [ $blog_in_bloglist = 1]  )

blog_create(-)

Create a new a blog This funtion has to handle all needed DB dependencies!

Parameters:
   $blog_name: 
   $blog_shortname: 
   $blog_siteurl: 
   $blog_stub: 
   $blog_staticfilename: 
   $blog_tagline: 
   $blog_description: 
   $blog_longdesc: 
   $blog_locale: 
   $blog_notes: 
   $blog_keywords: 
   $blog_links_blog_ID: 
   $blog_UID: 
   $blog_allowcomments: 
   $blog_allowtrackbacks: 
   $blog_allowpingbacks: 
   $blog_pingb2evonet: 
   $blog_pingtechnorati: 
   $blog_pingweblogs: 
   $blog_pingblodotgs: 
   $blog_disp_bloglist: 
   $blog_in_bloglist: 

Information Tags:
Todo:  move this to Blog object

[ Top ]
Blog_get_by_ID  [line 528]

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 646]

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

blog_list_iteminfo(-)

Display info about item

fplanque: created

Parameters:
   $what: 
   $show: 


[ Top ]
blog_list_next  [line 618]

void blog_list_next( [ $need = '']  )

Next blog iteration

blog_list_next(-)

Parameters:
   $need: 


[ Top ]
blog_list_start  [line 591]

void blog_list_start( [ $need = '']  )

Start blog iterator

blog_list_start(-)

Parameters:
   $need: 


[ Top ]
blog_load_cache  [line 547]

void blog_load_cache( )

blog_load_cache(-)



[ Top ]
blog_update_group_perms  [line 211]

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 116]

void blog_update_user_perms( int $blog  )

Update the user permissions for edited blog

Parameters:
int   $blog:  Blog ID


[ Top ]
get_bloginfo  [line 477]

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 ]
get_blogparams_by_ID  [line 505]

void get_blogparams_by_ID( integer $blog_ID  )

Get blog params for specified ID

Parameters:
integer   $blog_ID:  Blog ID

API Tags:
Deprecated:  deprecated by Blog_get_by_ID()

Information Tags:
Todo:  on a heavy multiblog system, cache them one by one...

[ Top ]


Documentation generated on Tue, 18 Dec 2007 23:09:55 +0100 by phpDocumentor 1.4.0