示例#1
0
 /**
  * Get array of groups with named permission to an item
  *
  * @param string $gperm_name   name of the permission to test
  * @param int    $gperm_itemid id of the object to check
  *
  * @return array  groups with permission for item
  **/
 public function getGroupsForItem($gperm_name, $gperm_itemid)
 {
     return $this->perm->getGroupIds($gperm_name, $gperm_itemid, $this->mid);
 }
示例#2
0
 /**
  * Get array of groups with named permission to an item
  *
  * @param string $gperm_name   name of the permission to test
  * @param int    $gperm_itemid id of the object to check
  *
  * @return array  groups with permission for item
  **/
 public function getGroupsForItem($gperm_name, $gperm_itemid)
 {
     $gperm_itemid = (int) $gperm_itemid;
     return $this->permissionHandler->getGroupIds($gperm_name, $gperm_itemid, $this->mid);
 }