Procedural File: _blog.funcs.php
Source Location: /blogs/inc/MODEL/collections/_blog.funcs.php
Includes
require_once
(dirname(__FILE__).'/_blogcache.class.php')
[line 41]
Includes:
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). |
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() |
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" |
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) |
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) |
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 |
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?! |
blog_list_iteminfo [line 646]
void blog_list_iteminfo(
$what, [ $show = 'raw']
)
|
|
blog_list_iteminfo(-)
Display info about item
fplanque: created
Parameters:
blog_list_next [line 618]
void blog_list_next(
[ $need = '']
)
|
|
Next blog iteration
blog_list_next(-)
Parameters:
blog_list_start [line 591]
void blog_list_start(
[ $need = '']
)
|
|
Start blog iterator
blog_list_start(-)
Parameters:
blog_load_cache [line 547]
blog_update_group_perms [line 211]
void blog_update_group_perms(
int $blog
)
|
|
Update the group permissions for edited blog
Parameters:
blog_update_user_perms [line 116]
void blog_update_user_perms(
int $blog
)
|
|
Update the user permissions for edited blog
Parameters:
void get_bloginfo(
[ $show = ''], [ $this_blogparams = '']
)
|
|
get_bloginfo(-)
Parameters:
API Tags:
| Deprecated: | deprecated by Blog::get() This is now a dirty stub |
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:
Information Tags:
| Todo: | on a heavy multiblog system, cache them one by one... |