API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
Public Member Functions | |
__construct (XoopsDatabase $db) | |
create ($isNew=true) | |
get ($id) | |
insert (XoopsObject $perm) | |
delete (XoopsObject $perm) | |
getObjects (CriteriaElement $criteria=null, $id_as_key=false) | |
getCount (CriteriaElement $criteria=null) | |
deleteAll (CriteriaElement $criteria=null) | |
deleteByGroup ($gperm_groupid, $gperm_modid=null) | |
deleteByModule ($gperm_modid, $gperm_name=null, $gperm_itemid=null) | |
checkRight ($gperm_name, $gperm_itemid, $gperm_groupid, $gperm_modid=1, $trueifadmin=true) | |
addRight ($gperm_name, $gperm_itemid, $gperm_groupid, $gperm_modid=1) | |
getItemIds ($gperm_name, $gperm_groupid, $gperm_modid=1) | |
getGroupIds ($gperm_name, $gperm_itemid, $gperm_modid=1) | |
Public Member Functions inherited from XoopsObjectHandler | |
__construct (XoopsDatabase $db) | |
XoopsObjectHandler ($db) | |
create () | |
get ($id) | |
insert (XoopsObject $object) | |
delete (XoopsObject $object) | |
Data Fields | |
$table | |
Data Fields inherited from XoopsObjectHandler | |
$db | |
XOOPS group permission handler class.
This class is responsible for providing data access mechanisms to the data source of XOOPS group permission class objects. This class is an abstract class to be implemented by child group permission classes.
__construct | ( | XoopsDatabase | $db | ) |
called from child classes only
XoopsDatabase | $db | reference to the XoopsDatabase object @access protected |
Reimplemented from XoopsObjectHandler.
addRight | ( | $gperm_name, | |
$gperm_itemid, | |||
$gperm_groupid, | |||
$gperm_modid = 1 |
|||
) |
Add a permission
string | $gperm_name | Name of permission |
int | $gperm_itemid | ID of an item |
int | $gperm_groupid | ID of a group |
int | $gperm_modid | ID of a module |
checkRight | ( | $gperm_name, | |
$gperm_itemid, | |||
$gperm_groupid, | |||
$gperm_modid = 1 , |
|||
$trueifadmin = true |
|||
) |
Check permission
string | $gperm_name | Name of permission |
int | $gperm_itemid | ID of an item |
int | /array $gperm_groupid A group ID or an array of group IDs | |
int | $gperm_modid | ID of a module |
bool | $trueifadmin | Returns true for admin groups |
create | ( | $isNew = true | ) |
delete | ( | XoopsObject | $perm | ) |
Delete a XoopsGroupPerm
XoopsObject | XoopsGroupPerm | $perm | a XoopsGroupPerm object |
Reimplemented from XoopsObjectHandler.
deleteAll | ( | CriteriaElement | $criteria = null | ) |
Delete all permissions by a certain criteria
CriteriaElement | CriteriaCompo | $criteria | CriteriaElement |
deleteByGroup | ( | $gperm_groupid, | |
$gperm_modid = null |
|||
) |
Delete all module specific permissions assigned for a group
int | $gperm_groupid | ID of a group |
int | $gperm_modid | ID of a module |
deleteByModule | ( | $gperm_modid, | |
$gperm_name = null , |
|||
$gperm_itemid = null |
|||
) |
Delete all module specific permissions
int | $gperm_modid | ID of a module |
string | $gperm_name | Name of a module permission |
int | $gperm_itemid | ID of a module item |
get | ( | $id | ) |
Retrieve a group permission
int | $id | ID |
XoopsGroupPerm
, FALSE on fail Reimplemented from XoopsObjectHandler.
getCount | ( | CriteriaElement | $criteria = null | ) |
Count some XoopsGroupPerm
s
CriteriaElement | CriteriaCompo | $criteria | CriteriaElement |
getGroupIds | ( | $gperm_name, | |
$gperm_itemid, | |||
$gperm_modid = 1 |
|||
) |
Get all group IDs assigned a specific permission for a particular item
string | $gperm_name | Name of permission |
int | $gperm_itemid | ID of an item |
int | $gperm_modid | ID of a module |
getItemIds | ( | $gperm_name, | |
$gperm_groupid, | |||
$gperm_modid = 1 |
|||
) |
Get all item IDs that a group is assigned a specific permission
string | $gperm_name | Name of permission |
int | /array $gperm_groupid A group ID or an array of group IDs | |
int | $gperm_modid | ID of a module |
getObjects | ( | CriteriaElement | $criteria = null , |
$id_as_key = false |
|||
) |
Retrieve multiple XoopsGroupPerm
s
CriteriaElement | CriteriaCompo | $criteria | CriteriaElement |
bool | $id_as_key | Use IDs as array keys? |
XoopsGroupPerm
s insert | ( | XoopsObject | $perm | ) |
Store a XoopsGroupPerm
XoopsObject | XoopsGroupPerm | $perm | a XoopsGroupPerm object |
Reimplemented from XoopsObjectHandler.
$table |