Verified Commit dd40362c authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:tractor: feat(netgrous) Migrate netgroups to new management class

issue #5914
Showing with 4 additions and 37 deletions
+4 -37
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/* /*
This code is part of FusionDirectory (http://www.fusiondirectory.org) This code is part of FusionDirectory (http://www.fusiondirectory.org)
Copyright (C) 2013-2016 FusionDirectory Copyright (C) 2013-2019 FusionDirectory
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -19,28 +19,18 @@ ...@@ -19,28 +19,18 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
class netgroupManagement extends simpleManagement class netgroupManagement extends management
{ {
// Tab definition
protected $objectTypes = array('netgroup');
protected $departmentBrowser = TRUE;
protected $departmentRootVisible = FALSE;
protected $baseMode = TRUE;
static function plInfo() static function plInfo()
{ {
return array( return array(
'plShortName' => _('NIS Netgroups'), 'plShortName' => _('NIS Netgroups'),
'plDescription' => _('NIS Netgroup management'), 'plTitle' => _('NIS Netgroups management'),
'plDescription' => _('Manage NIS Netgroups'),
'plIcon' => 'geticon.php?context=applications&icon=netgroups&size=48', 'plIcon' => 'geticon.php?context=applications&icon=netgroups&size=48',
'plSection' => 'accounts', 'plSection' => 'accounts',
'plPriority' => 25, 'plPriority' => 25,
'plManages' => array('netgroup'), 'plManages' => array('netgroup'),
'plProvidedAcls' => array()
); );
} }
} }
?>
<?php
/*
This code is part of FusionDirectory (http://www.fusiondirectory.org)
Copyright (C) 2013-2016 FusionDirectory
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
simpleManagement::mainInc('netgroupManagement');
?>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment