diff --git a/include/class_acl.inc b/include/class_acl.inc
index cdc6b9ffd9affd7d4770e3056281aea616337f78..f5b26e32f21effdef7c567bee067226cc8355290 100644 (file)
--- a/include/class_acl.inc
+++ b/include/class_acl.inc
if (isset($this->attrs['gosaAclEntry'])){
for ($i= 0; $i<$this->attrs['gosaAclEntry']['count']; $i++){
$acl= $this->attrs['gosaAclEntry'][$i];
- $this->gosaAclEntry= array_merge($this->gosaAclEntry, $this->explodeACL($acl));
+ $this->gosaAclEntry= array_merge($this->gosaAclEntry, acl::explodeACL($acl));
}
}
ksort($this->gosaAclEntry);
$this->roles[$role_id]['acls'] =array();
for ($i= 0; $i < $attrs['gosaAclTemplate']['count']; $i++){
$acl= $attrs['gosaAclTemplate'][$i];
- $this->roles[$role_id]['acls'] = array_merge($this->roles[$role_id]['acls'],$this->explodeACL($acl));
+ $this->roles[$role_id]['acls'] = array_merge($this->roles[$role_id]['acls'],acl::explodeACL($acl));
}
$this->roles[$role_id]['description'] = $dsc;
$this->roles[$role_id]['cn'] = $attrs['cn'][0];
if ($this->dialogState == 'head'){
/* Draw list */
- $aclList= new DivSelectBox("aclList");
+ $aclList= new divSelectBox("aclList");
$aclList->SetHeight(450);
/* Fill in entries */
if ($this->dialogState == 'create'){
/* Draw list */
- $aclList= new DivSelectBox("aclList");
+ $aclList= new divSelectBox("aclList");
$aclList->SetHeight(150);
/* Add settings for all categories to the (permanent) list */
function buildRoleSelector($list)
{
- $D_List =new DivSelectBox("Acl_Roles");
+ $D_List =new divSelectBox("Acl_Roles");
$selected = $this->aclContents;
if(!is_string($this->aclContents) || !isset($list[$this->aclContents])){
}
- function explodeACL($acl)
+ static function explodeACL($acl)
{
list($index, $type)= split(':', $acl);
$a= array( $index => array("type" => $type,
}
- function extractMembers($acl,$role = FALSE)
+ static function extractMembers($acl,$role = FALSE)
{
global $config;
$a= array();
}
- function extractACL($acl)
+ static function extractACL($acl)
{
/* Rip acl off the string, seperate by ',' and place it in an array */
$as= preg_replace('/^[^:]+:[^:]+:[^:]*:(.*)$/', '\1', $acl);
/* Return plugin informations for acl handling */
- function plInfo()
+ static function plInfo()
{
return (array(
"plShortName" => _("ACL"),