Class: Group
Source Location: /blogs/inc/MODEL/users/_group.class.php
Class Group
Class Overview
|
User Group Group of users with specific permissions. Located in /blogs/inc/MODEL/users/_group.class.php [line 43] DataObject | --GroupAuthor(s):
|
[ Top ]
Inherited Properties, Constants, and Methods
| Inherited Properties | Inherited Methods | Inherited Constants |
|---|---|---|
|
Inherited From DataObject |
Inherited From DataObject
|
[ Top ]
Property Summary
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 |
| void | name() | Template function: display name of blog |
| void | name_return() | Template function: return name of group |
| boolean | set() | Set param value |
[ Top ]
Properties
Methods
Constructor Group [line 66]
|
Constructor
Parameters:| object DB | $db_row: | row |
[ Top ]
check_perm [line 143]
|
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 324]
|
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 |
API Tags:
| Return: | 0 if permission denied |
| See: | User::check_perm() |
[ Top ]
check_perm_catsgroups [line 272]
|
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 ]
name [line 396]
|
Template function: display name of blog
Parameters:| string | $format: | Output format, see format_to_output() |
| $disp: |
[ Top ]
name_return [line 414]
|
Template function: return name of group
Parameters:| string | $format: | Output format, see format_to_output() |
[ Top ]
set [line 115]
|
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 ]
