XOOPS API 2.5.11 Beta1
UI v0.5
Réalisé par monxoops.fr
|
Fonctions membres publiques | |
__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) | |
Fonctions membres publiques hérités de XoopsObjectHandler | |
XoopsObjectHandler ($db) | |
create () | |
Champs de données | |
$table | |
Champs de données hérités de 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 |
Réimplémentée à partir de 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 |
Réimplémentée à partir de 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 |
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 |
Réimplémentée à partir de XoopsObjectHandler.
getCount | ( | CriteriaElement | $criteria = null | ) |
Count some XoopsGroupPerms
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 XoopsGroupPerms
CriteriaElement | CriteriaCompo | $criteria | CriteriaElement |
bool | $id_as_key | Use IDs as array keys? |
insert | ( | XoopsObject | $perm | ) |
Store a XoopsGroupPerm
XoopsObject | XoopsGroupPerm | $perm | a XoopsGroupPerm object |
Réimplémentée à partir de XoopsObjectHandler.