XOOPS 2.5.6
Final
|
Public Member Functions | |
addRight ($gperm_name, $gperm_itemid, $gperm_groupid, $gperm_modid=1) | |
checkRight ($gperm_name, $gperm_itemid, $gperm_groupid, $gperm_modid=1, $trueifadmin=true) | |
& | create ($isNew=true) |
delete (&$perm) | |
deleteAll ($criteria=null) | |
deleteByGroup ($gperm_groupid, $gperm_modid=null) | |
deleteByModule ($gperm_modid, $gperm_name=null, $gperm_itemid=null) | |
& | get ($id) |
getCount ($criteria=null) | |
getGroupIds ($gperm_name, $gperm_itemid, $gperm_modid=1) | |
getItemIds ($gperm_name, $gperm_groupid, $gperm_modid=1) | |
getObjects ($criteria=null, $id_as_key=false) | |
insert (&$perm) | |
Public Member Functions inherited from XoopsObjectHandler | |
& | create () |
delete (&$object) | |
& | get ($int_id) |
insert (&$object) | |
XoopsObjectHandler (&$db) | |
Additional Inherited Members | |
Public Attributes 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.
Definition at line 108 of file groupperm.php.
XoopsGroupPermHandler::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 |
Definition at line 376 of file groupperm.php.
References XoopsObjectHandler\create(), and insert().
XoopsGroupPermHandler::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 |
Definition at line 335 of file groupperm.php.
References $criteria, and getCount().
& XoopsGroupPermHandler::create | ( | $isNew = true | ) |
Create a new XoopsGroupPerm
Definition at line 115 of file groupperm.php.
XoopsGroupPermHandler::delete | ( | & | $perm | ) |
Delete a XoopsGroupPerm
object | &$perm |
: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5
Definition at line 196 of file groupperm.php.
XoopsGroupPermHandler::deleteAll | ( | $criteria = null | ) |
Delete all permissions by a certain criteria
object | $criteria | CriteriaElement |
Definition at line 274 of file groupperm.php.
References $criteria, $result, and $sql.
Referenced by deleteByGroup(), and deleteByModule().
XoopsGroupPermHandler::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 |
Definition at line 294 of file groupperm.php.
References $criteria, and deleteAll().
XoopsGroupPermHandler::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 |
Definition at line 312 of file groupperm.php.
References $criteria, and deleteAll().
& XoopsGroupPermHandler::get | ( | $id | ) |
Retrieve a group permission
int | $id | ID |
Definition at line 131 of file groupperm.php.
XoopsGroupPermHandler::getCount | ( | $criteria = null | ) |
Count some XoopsGroupPerms
object | $criteria | CriteriaElement |
Definition at line 253 of file groupperm.php.
References $criteria, $result, and $sql.
Referenced by checkRight().
XoopsGroupPermHandler::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 |
Definition at line 425 of file groupperm.php.
References $criteria, $i, $ret, and getObjects().
XoopsGroupPermHandler::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 |
Definition at line 395 of file groupperm.php.
References $criteria, $criteria2, $i, $ret, and getObjects().
XoopsGroupPermHandler::getObjects | ( | $criteria = null , |
|
$id_as_key = false |
|||
) |
Retrieve multiple XoopsGroupPerms
object | $criteria | CriteriaElement |
bool | $id_as_key | Use IDs as array keys? |
Definition at line 219 of file groupperm.php.
References $criteria, $limit, $result, $ret, $sql, and $start.
Referenced by getGroupIds(), and getItemIds().
XoopsGroupPermHandler::insert | ( | & | $perm | ) |
Store a XoopsGroupPerm
object | &$perm | XoopsGroupPerm object |
: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5
Definition at line 156 of file groupperm.php.
Referenced by addRight().