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

:tractor: feat(repository) Migrate repository to new management class

issue #5914
Showing with 4 additions and 30 deletions
+4 -30
<?php <?php
/* /*
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
...@@ -20,13 +20,12 @@ ...@@ -20,13 +20,12 @@
class repositoryManagement extends simpleManagement class repositoryManagement extends simpleManagement
{ {
protected $objectTypes = array('buildRepository', 'repoDistribution', 'repoSection');
public static function plInfo() public static function plInfo()
{ {
return array( return array(
'plShortName' => _('Repository management'), 'plShortName' => _('Repositories'),
'plDescription' => _('Repository management'), 'plTitle' => _('Repositories management'),
'plDescription' => _('Manage repositories'),
'plIcon' => 'geticon.php?context=applications&icon=repository&size=48', 'plIcon' => 'geticon.php?context=applications&icon=repository&size=48',
'plSection' => 'systems', 'plSection' => 'systems',
'plPriority' => 22, 'plPriority' => 22,
...@@ -35,9 +34,6 @@ class repositoryManagement extends simpleManagement ...@@ -35,9 +34,6 @@ class repositoryManagement extends simpleManagement
'objectClass' => array('fdBuildRepository', 'fdBuildRepositoryDistribution', 'fdBuildRepositorySection') 'objectClass' => array('fdBuildRepository', 'fdBuildRepositoryDistribution', 'fdBuildRepositorySection')
)), )),
'plManages' => array('buildRepository', 'repoDistribution', 'repoSection'), 'plManages' => array('buildRepository', 'repoDistribution', 'repoSection'),
'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('repositoryManagement');
?>
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