Verified Commit 35f18bde authored by Jonathan Swaelens's avatar Jonathan Swaelens
Browse files

:sparkles: feat(demo): Update demo to be installable by fusiondirectory-plugin-manager


Update demo to be installable by fusiondirectory-plugin-manager

Signed-off-by: Jonathan Swaelens's avatarJonathan Swaelens <jonathan.swaelens@fusiondirectory.org>
No related merge requests found
Showing with 32 additions and 23 deletions
+32 -23
information:
name : "demoPlugin"
description : "demoPlugin"
version : "0.1"
authors : ['fusiondirectory']
status : "Development"
screenshotUrl:
- ""
logoUrl : ""
tags : ["information"]
license: "GPLv2"
origin: "source"
support:
provider: "fusiondirectory"
homeUrl : ""
ticketUrl : ""
discussionUrl : ""
schemaUrl: ""
downloadUrl: ""
requirement:
fdVersion : 1.4
phpVersion : 7.4.0
content :
fileList :
- './contrib/openldap/demoPlugin.schema'
- './contrib/yaml/description.yaml'
- './personal/demoPlugin/class_demoPlugin.inc'
<?php
/*
This code is part of FusionDirectory (http://www.fusiondirectory.org)
Copyright (C) 2012-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.
*/
simplePlugin::mainInc('demoPlugin', $ui->dn);
?>
......@@ -32,7 +32,7 @@ class demoPlugin extends simplePlugin
var $objectclasses = ['demoPlugin'];
// The main function : information about attributes
static function getAttributesInfo ()
static function getAttributesInfo () : array
{
return [
// Attributes are grouped by section
......@@ -114,7 +114,7 @@ class demoPlugin extends simplePlugin
}
// We also need this function that return some information about the plugin
static function plInfo ()
static function plInfo () : array
{
return [
'plShortName' => _('Demo Plugin'),
......
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