Procedural File: _blog.funcs.php
Source Location: /blogs/inc/MODEL/collections/_blog.funcs.php
Includes
require_once
(dirname(__FILE__).'/_blogcache.class.php')
[line 42]
Includes:
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). |
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 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" |
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) |
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) |
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?! |
blog_list_iteminfo [line 563]
void blog_list_iteminfo(
$what, [ $show = 'raw']
)
|
|
blog_list_iteminfo(-)
Display info about item
fplanque: created
Parameters:
blog_list_next [line 535]
void blog_list_next(
[ $need = '']
)
|
|
Next blog iteration
blog_list_next(-)
Parameters:
blog_list_start [line 509]
void blog_list_start(
[ $need = '']
)
|
|
Start blog iterator
blog_list_start(-)
Parameters:
blog_load_cache [line 459]
Information Tags:
| Todo: | fp> this needs to be deprecated |
| Todo: | fp> get rid of the $cache_blogs crap and use $BlogCache only |
blog_update_group_perms [line 145]
void blog_update_group_perms(
int $blog
)
|
|
Update the group permissions for edited blog
Parameters:
blog_update_user_perms [line 50]
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 |