[Fusionforge-commits] r14033 - trunk/src/plugins/helloworld/include

Christian Bayle cbayle at fusionforge.org
Tue Aug 2 15:22:17 CEST 2011


Author: cbayle
Date: 2011-08-02 15:22:17 +0200 (Tue, 02 Aug 2011)
New Revision: 14033

Added:
   trunk/src/plugins/helloworld/include/HelloWorldPluginDescriptor.class.php
   trunk/src/plugins/helloworld/include/HelloWorldPluginInfo.class.php
Log:
Will be used by plugin manager plugin, for compat with codendi


Added: trunk/src/plugins/helloworld/include/HelloWorldPluginDescriptor.class.php
===================================================================
--- trunk/src/plugins/helloworld/include/HelloWorldPluginDescriptor.class.php	                        (rev 0)
+++ trunk/src/plugins/helloworld/include/HelloWorldPluginDescriptor.class.php	2011-08-02 13:22:17 UTC (rev 14033)
@@ -0,0 +1,33 @@
+<?php
+/**
+ * Copyright (c) Xerox Corporation, Codendi Team, 2001-2009. All rights reserved
+ *
+ * This file is a part of Codendi.
+ *
+ * Codendi 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.
+ *
+ * Codendi 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 Codendi. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Portions Copyright 2010 (c) Mélanie Le Bail
+ * Portions Copyright 2011 (c) France Telecom, Coclico project
+ */
+
+require_once('common/plugin/PluginDescriptor.class.php');
+
+
+class HelloWorldPluginDescriptor extends PluginDescriptor {
+
+    function HelloWorldPluginDescriptor() {
+        $this->PluginDescriptor(_('HelloWorld'), 'v1.0', _('HelloWorld integration in the forge'));
+    }
+}
+?>

Added: trunk/src/plugins/helloworld/include/HelloWorldPluginInfo.class.php
===================================================================
--- trunk/src/plugins/helloworld/include/HelloWorldPluginInfo.class.php	                        (rev 0)
+++ trunk/src/plugins/helloworld/include/HelloWorldPluginInfo.class.php	2011-08-02 13:22:17 UTC (rev 14033)
@@ -0,0 +1,34 @@
+<?php
+/**
+ * Copyright (c) Xerox Corporation, Codendi Team, 2001-2009. All rights reserved
+ *
+ * This file is a part of Codendi.
+ *
+ * Codendi 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.
+ *
+ * Codendi 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 Codendi. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Copyright 2010 (c) Mélanie Le Bail
+ * Copyright 2011 (c) France Telecom, Coclico project
+ */
+require_once('common/plugin/PluginInfo.class.php');
+require_once('HelloWorldPluginDescriptor.class.php');
+
+class HelloWorldPluginInfo extends PluginInfo {
+
+    function HelloWorldPluginInfo(&$plugin) {
+        $this->PluginInfo($plugin);
+        $this->setPluginDescriptor(new HelloWorldPluginDescriptor());
+    }
+
+}
+?>




More information about the Fusionforge-commits mailing list