summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b7ad5f3)
raw | patch | inline | side by side (parent: b7ad5f3)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 22 Jan 2010 14:11:49 +0000 (14:11 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 22 Jan 2010 14:11:49 +0000 (14:11 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15263 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_listing.inc | patch | blob | history |
index 2a55749ad5f7f0381994ee5c3ccd154a7c021374..2ac0c8e4fec2d2b977406138aa6641672d48a057 100644 (file)
var $multiSelect= false;
var $template;
var $headline;
- var $module;
var $base;
var $sortDirection= null;
var $sortColumn= null;
// Prepare table headers
$this->renderHeader();
- // Assign headline/module
+ // Assign headline/Categories
$this->headline= _($this->xmlData['definition']['label']);
- $this->module= $this->xmlData['definition']['module'];
if (!is_array($this->categories)){
$this->categories= array($this->categories);
}
// Navigation handling
if ($action == 'ROOT') {
- $deps= $ui->get_module_departments($this->module);
+ $deps= $ui->get_module_departments($this->categories);
$this->base= $deps[0];
}
if ($action == 'BACK') {
- $deps= $ui->get_module_departments($this->module);
+ $deps= $ui->get_module_departments($this->categories);
$base= preg_replace("/^[^,]+,/", "", $this->base);
if(in_array_ics($base, $deps)){
$this->base= $base;
$ui = get_userinfo();
/* Check if base = first available base */
- $deps = $ui->get_module_departments($this->module);
+ $deps = $ui->get_module_departments($this->categories);
if(!count($deps) || $deps[0] == $this->filter->base){
$enableBack = false;
// Every ACL has to pass
foreach ($acls as $acl) {
- $module= $this->module;
+ $module= $this->categories;
$aclList= array();
// Replace %acl if available
// Do some array munching to get it user friendly
$ids= $config->idepartments;
- $d= $ui->get_module_departments($this->module);
+ $d= $ui->get_module_departments($this->categories);
$k_ids= array_keys($ids);
$deps= array_intersect($d,$k_ids);
$types = departmentManagement::get_support_departments();
// Load departments allowed by ACL
- $validDepartments = $ui->get_module_departments($this->module);
+ $validDepartments = $ui->get_module_departments($this->categories);
// Build filter and look in the LDAP for possible sub departments
// of current base
$attrs[]= $data['ATTR'];
}
$filter.= "))";
- $res= get_list($filter, $this->module, $this->base, $attrs, GL_NONE);
+ $res= get_list($filter, $this->categories, $this->base, $attrs, GL_NONE);
// Analyze list of departments
foreach ($res as $department) {
$result = "";
$ui = get_userinfo();
- if($this->snapshotHandler->enabled() && $ui->allow_snapshot_restore($this->base, $this->module)){
+ if($this->snapshotHandler->enabled() && $ui->allow_snapshot_restore($this->base, $this->categories)){
// Check if there is something to restore
$restore= false;