[evolvis-commits] r7969: Adapted to the current version of the plugin manager code. ↵
mirabilos at evolvis.org
mirabilos at evolvis.org
Thu Feb 24 15:54:00 CET 2011
Author: mirabilos
Date: 2011-02-24 15:53:59 +0100 (Thu, 24 Feb 2011)
New Revision: 7969
Modified:
trunk/gforge_base/evolvisforge-5.1/gforge-plugin-helloworld/debian/changelog
trunk/gforge_base/evolvisforge-5.1/gforge-plugin-helloworld/include/HelloWorldPlugin.class
trunk/gforge_base/evolvisforge-5.1/gforge-plugin-helloworld/include/helloworld-init.php
Log:
Adapted to the current version of the plugin manager code.
Modified: trunk/gforge_base/evolvisforge-5.1/gforge-plugin-helloworld/debian/changelog
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge-plugin-helloworld/debian/changelog 2011-02-24 14:53:58 UTC (rev 7968)
+++ trunk/gforge_base/evolvisforge-5.1/gforge-plugin-helloworld/debian/changelog 2011-02-24 14:53:59 UTC (rev 7969)
@@ -1,3 +1,9 @@
+sourceforge-plugin-helloworld (0.2-2) experimental; urgency=low
+
+ * Moved to experimental.
+
+ -- Roland Mas <lolando at debian.org> Sat, 7 Dec 2002 10:49:22 +0100
+
sourceforge-plugin-helloworld (0.2-1) unstable; urgency=low
* Rewrote to use the new hooks system.
Modified: trunk/gforge_base/evolvisforge-5.1/gforge-plugin-helloworld/include/HelloWorldPlugin.class
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge-plugin-helloworld/include/HelloWorldPlugin.class 2011-02-24 14:53:58 UTC (rev 7968)
+++ trunk/gforge_base/evolvisforge-5.1/gforge-plugin-helloworld/include/HelloWorldPlugin.class 2011-02-24 14:53:59 UTC (rev 7969)
@@ -3,7 +3,7 @@
class HelloWorldPlugin extends Plugin {
function HelloWorldPlugin () {
$this->Plugin() ;
- $this->hooks = array () ;
+ $this->name = "helloworld" ;
$this->hooks[] = "usermenu" ;
}
@@ -17,17 +17,10 @@
echo ' [off]' ;
}
echo '</A>' ;
- } elseif ($hookname == "blah") {
- // Blah
+ } elseif ($hookname == "blahblahblah") {
+ // ...
}
}
-
- function GetHooks () {
- // echo "Entered HelloWorldPlugin->GetHooks" ;
- $hooks = array () ;
- $hooks [] = "usermenu" ;
- return $hooks ;
- }
}
// Local Variables:
Modified: trunk/gforge_base/evolvisforge-5.1/gforge-plugin-helloworld/include/helloworld-init.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge-plugin-helloworld/include/helloworld-init.php 2011-02-24 14:53:58 UTC (rev 7968)
+++ trunk/gforge_base/evolvisforge-5.1/gforge-plugin-helloworld/include/helloworld-init.php 2011-02-24 14:53:59 UTC (rev 7969)
@@ -2,12 +2,10 @@
require_once ('/usr/lib/sourceforge/plugins/helloworld/include/HelloWorldPlugin.class') ;
-$HelloWorldPluginObject = new HelloWorldPlugin () ;
+$HelloWorldPluginObject = new HelloWorldPlugin ;
-$pm = plugin_manager_get_object() ;
+register_plugin ($HelloWorldPluginObject) ;
-$pm->RegisterPlugin ("helloworld", $HelloWorldPluginObject) ;
-
// Local Variables:
// mode: php
// c-file-style: "bsd"
More information about the evolvis-commits
mailing list