summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7576842)
raw | patch | inline | side by side (parent: 7576842)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 28 Oct 2009 17:10:14 +0000 (17:10 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 28 Oct 2009 17:10:14 +0000 (17:10 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14686 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_management.inc | patch | blob | history | |
gosa-core/plugins/admin/departments/class_departmentManagement.inc | patch | blob | history |
index 31573b68f2b1d9a83b110422c069a1e97c41f951..eb8af6df705f58168cac95fc01f2c4168eed6a31 100644 (file)
* @param Array 'target' A list of object dns, which should be affected by this method.
* @param Array 'all' A combination of both 'action' and 'target'.
*/
- protected function removeEntryRequested($action,$target,$all)
+ protected function removeEntryRequested($action="",$target=array(),$all=array())
{
$disallowed = array();
$this->dns = array();
diff --git a/gosa-core/plugins/admin/departments/class_departmentManagement.inc b/gosa-core/plugins/admin/departments/class_departmentManagement.inc
index 96cea0fc604f200615c1e8cb542f8b623ea89159..a5a044d0d2d6bbc0b0e5c93e89a1199ec7bbab6c 100644 (file)
class departmentManagement extends management
{
var $plHeadline = "Departments";
- var $plDescription = "Manage departmentw";
+ var $plDescription = "Manage department";
+ var $plIcon = "plugins/departments/images/plugin.png";
// Tab definition
protected $tabClass = "deptabs";
$this->registerAction("new_organization","newEntry");
$this->registerAction("new_department","newEntry");
+ $this->registerAction("performRecMove","performRecMove");
+ $this->registerAction("tagDepartment","tagDepartment");
}
+
+ function detectPostActions()
+ {
+ $actions = management::detectPostActions();
+ if(isset($_GET['PerformRecMove'])) $action['action'] = "performRecMove";
+ if(isset($_GET['TagDepartment'])) $action['action'] = "tagDepartment";
+ return($actions);
+ }
+
+ function performRecMove()
+ {
+ if(isset($_GET['PerformRecMove'])){
+ $this->deptabs->move_me();
+ $this->DivListDepartment->selectedBase = $this->deptabs->by_object['department']->dn;
+ exit();
+ }
+ }
+
+ function tagDepartment()
+ {
+ if(isset($_GET['TagDepartment'])){
+ $base_name = $this->deptabs->base_name;
+ $this->deptabs->by_object[$base_name]->tag_objects();
+ exit();
+ }
+ }
+
+
function newEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="")
{
echo "Remember to add recursive move and department tagging again!";