Verified Commit 410b5591 authored by dockx thibault's avatar dockx thibault
Browse files

:sparkles: Feat(PluginManager) - Adds proper objectClass

Adds proper objectClass and removes unecessary tabs.
Showing with 26 additions and 3 deletions
+26 -3
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
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 pluginsManager extends simplePlugin class pluginsManager extends simplePlugin
{ {
...@@ -24,13 +24,20 @@ class pluginsManager extends simplePlugin ...@@ -24,13 +24,20 @@ class pluginsManager extends simplePlugin
{ {
return [ return [
'plShortName' => _('Plugins'), 'plShortName' => _('Plugins'),
'plObjectType' => ['tasks'], 'plObjectType' => [
'pluginManager' => [
'name' => _('PluginManager'),
'mainAttr' => FALSE
]
],
'plTitle' => _('Plugins Manager'), 'plTitle' => _('Plugins Manager'),
'plIcon' => 'geticon.php?context=applications&icon=tasks-dashboard&size=48', 'plIcon' => 'geticon.php?context=applications&icon=tasks-dashboard&size=48',
'plSection' => ['Dashboard' => ['name' => _('Dashboard'), 'priority' => 30]], 'plSection' => ['Dashboard' => ['name' => _('Dashboard'), 'priority' => 30]],
'plPriority' => 10, 'plPriority' => 10,
'plDescription' => _('Provide a reporting mechanism of installed plugins'), 'plDescription' => _('Provide a reporting mechanism of installed plugins'),
'plProvidedAcls' => [] 'plProvidedAcls' => [
'pluginManager' => _('See pluginManager')
]
]; ];
} }
...@@ -86,4 +93,20 @@ class pluginsManager extends simplePlugin ...@@ -86,4 +93,20 @@ class pluginsManager extends simplePlugin
return $div->drawList(); return $div->drawList();
} }
static function mainInc ($classname = NULL, $entry_dn = NULL, $tabs = FALSE, $edit_mode = FALSE, $objectType = FALSE)
{
global $config;
if ($classname === NULL) {
$classname = get_called_class();
}
if ($entry_dn === NULL) {
$entry_dn = $config->current['BASE'];
}
parent::mainInc($classname, $entry_dn, $tabs, $edit_mode, $objectType);
}
} }
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