config = $config; $this->ui = $ui; $this->storagePoints = array(); // ACLs are attached to department containers // Build filter # if (session::global_is_set(get_class($this)."_filter")){ # $filter= session::global_get(get_class($this)."_filter"); # } else { $filter = new filter(get_template_path("acl-filter.xml", true)); # $filter->setObjectStorage($this->storagePoints); # } $this->setFilter($filter); // Build headpage $headpage = new listing(get_template_path("acl-list.xml", true)); $headpage->registerElementFilter("filterLabel", "aclManagement::filterLabel"); $headpage->setFilter($filter); // Add copy&paste and snapshot handler. if ($this->config->boolValueIsTrue("main", "copyPaste")){ $this->cpHandler = new CopyPasteHandler($this->config); } if($this->config->get_cfg_value("enableSnapshots") == "true"){ $this->snapHandler = new SnapshotHandler($this->config); } parent::__construct($config, $ui, "acl", $headpage); } // A filter which allows to open a department by clicking on the departments name. static function filterLabel($row,$dn,$params,$ou= array(),$cn=array(),$pid=0,$base="") { if(!isset($ou[0])){ $ou = $cn[0]; }else{ $ou = $ou[0]; } if($dn == $base){ $ou ="."; } $dn= LDAP::fix(func_get_arg(1)); return("$ou"); } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>