Class: Group
Source Location: /blogs/inc/users/model/_group.class.php
Class Group
Class Overview
|
User Group Group of users with specific permissions. Located in /blogs/inc/users/model/_group.class.php [line 40] DataObject | --GroupAuthor(s):
|
|
[ Top ]
Inherited Properties, Constants, and Methods
| Inherited Properties | Inherited Methods | Inherited Constants |
|---|---|---|
|
Inherited From DataObject |
Inherited From DataObject
|
[ Top ]
Property Summary
| mixed | $blog_post_statuses | Blog posts statuses permissions |
| string | $name | Name of group |
| mixed | $perm_admin | |
| mixed | $perm_blogs | |
| mixed | $perm_bypass_antispam | |
| mixed | $perm_files | |
| mixed | $perm_options | |
| mixed | $perm_security | |
| mixed | $perm_spamblacklist | |
| mixed | $perm_stats | |
| mixed | $perm_templates | |
| mixed | $perm_users | |
| mixed | $perm_xhtmlvalidation | |
| mixed | $perm_xhtml_css_tweaks | |
| mixed | $perm_xhtml_iframes | |
| mixed | $perm_xhtml_javascript | |
| mixed | $perm_xhtml_objects |
[ Top ]
Method Summary
| Group | Group() | Constructor |
| boolean | check_perm() | Check a permission for this group. |
| boolean | check_perm_bloggroups() | Check permission for this group on a specified blog |
| boolean | check_perm_catsgroups() | Check permission for this group on a set of specified categories |
| string | get_name() | Get name of the Group |
| boolean | set() | Set param value |
[ Top ]
Properties
Methods
Constructor Group [line 80]
|
Constructor
Parameters:| object DB | $db_row: | row |
[ Top ]
check_perm [line 164]
|
Check a permission for this group.
Parameters:| string | $permname: |
Permission name:
|
| string | $permlevel: | Requested permission level |
| mixed | $perm_target: | Permission target (blog ID, array of cat IDs...) |
API Tags:
| Return: | True on success (permission is granted), false if permission is not granted |
[ Top ]
check_perm_bloggroups [line 403]
|
Check permission for this group on a specified blog
This is not for direct use, please call User::check_perm() instead user is checked for privileges first, group lookup only performed on a false result
Parameters:| string | $permname: |
Permission name, can be one of the following:
|
| string | $permlevel: | Permission level |
| integer | $perm_target_blog: | Permission target blog ID |
| Item | $Item: | post that we want to edit |
| $User: |
API Tags:
| Return: | 0 if permission denied |
| See: | User::check_perm() |
[ Top ]
check_perm_catsgroups [line 343]
|
Check permission for this group on a set of specified categories
This is not for direct use, please call User::check_perm() instead
Parameters:| string | $permname: |
Permission name, can be one of the following:
|
| string | $permlevel: | Permission level |
| array | &$perm_target_cats: | Array of target cat IDs |
API Tags:
| Return: | 0 if permission denied |
| See: | User::check_perm() |
[ Top ]
set [line 136]
|
Set param value
Parameters:| string | $parname: | Parameter name |
| mixed | $parvalue: | Parameter value |
API Tags:
| Return: | true, if a value has been set; false if it has not changed |
Redefinition of:
- DataObject::set()
- Set param value
[ Top ]
