[Fusionforge-commits] FusionForge branch master updated. 12c953e30a4cab7e915e9cc32cc7b81e88fbed6b

Franck VILLAUME nerville at fusionforge.org
Sun Nov 10 19:12:17 CET 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  12c953e30a4cab7e915e9cc32cc7b81e88fbed6b (commit)
      from  ebc29c5d7c11c7635483418da62531f3fd54cf39 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 12c953e30a4cab7e915e9cc32cc7b81e88fbed6b
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sun Nov 10 19:11:58 2013 +0100

    PluginManager: fix indent

diff --git a/src/common/include/PluginManager.class.php b/src/common/include/PluginManager.class.php
index 07af173..51b556e 100644
--- a/src/common/include/PluginManager.class.php
+++ b/src/common/include/PluginManager.class.php
@@ -68,8 +68,8 @@ class PluginManager extends Error {
 	/**
 	 * GetPluginObject() - get a particular plugin object
 	 *
-	 * @param	string	$pluginname		name of plugin
-	 * @return	object					plugin object or false if not available
+	 * @param	string	$pluginname	name of plugin
+	 * @return	object	plugin object or false if not available
 	 */
 	function GetPluginObject($pluginname) {
 		if (!isset($this->plugins_objects[$pluginname])) {
@@ -82,6 +82,7 @@ class PluginManager extends Error {
 	function getPluginByName($pluginname) {
 		return @$this->plugins_objects[$pluginname];
 	}
+
 	/**
 	 * PluginIsInstalled() - is a plugin installed?
 	 *
@@ -97,6 +98,13 @@ class PluginManager extends Error {
 		}
 		return false;
 	}
+
+	/**
+	 * isPluginAvailable() - is a plugin available?
+	 *
+	 * @param	string	$pluginname	name of plugin
+	 * @return	bool	true if installed
+	 */
 	function isPluginAvailable($plugin) {
 		$pluginname = $plugin->GetName();
 		$plugins_data = $this->getPlugins();
@@ -211,8 +219,8 @@ class PluginManager extends Error {
 	 * RegisterPlugin() - register a plugin
 	 *
 	 * @param	object	$pluginobject	an object of a subclass of the Plugin class
-     * @return bool
-     */
+	 * @return	bool
+	 */
 	function RegisterPlugin(&$pluginobject) {
 		if (!$pluginobject->GetName()) {
 			exit_error(_("Some plugin did not provide a name. I'd gladly tell you which one, but obviously I cannot. Sorry."),'');
@@ -226,10 +234,10 @@ class PluginManager extends Error {
 	/**
 	 * RunHooks() - call hooks from a particular point
 	 *
-	 * @param hookname - name of the hook
-	 * @param params - array of extra parameters
+	 * @param	string	$hookname - name of the hook
+	 * @param	array	$params - array of extra parameters
 	 *
-	 * @return boolean, true if all returned true.
+	 * @return	boolean, true if all returned true.
 	 */
 	function RunHooks($hookname, & $params) {
 		$result = true;
@@ -291,7 +299,7 @@ class PluginManager extends Error {
 /**
  * plugin_manager_get_object() - get the PluginManager object
  *
- * @return PluginManager the PluginManager object
+ * @return	PluginManager the PluginManager object
  */
 function &plugin_manager_get_object() {
 	global $PLUGINMANAGER_OBJ;
@@ -304,8 +312,8 @@ function &plugin_manager_get_object() {
 /**
  * plugin_get_object() - get a particular Plugin object
  *
- * @param string $pluginname - a plugin name
- * @return Plugin The Plugin object
+ * @param	string	$pluginname - a plugin name
+ * @return	Plugin The Plugin object
  */
 function &plugin_get_object($pluginname) {
 	global $PLUGINMANAGER_OBJ;
@@ -316,8 +324,8 @@ function &plugin_get_object($pluginname) {
 /**
  * register_plugin() - register a plugin
  *
- * @param pluginobject - an object of a subclass of the Plugin class
- * @return bool
+ * @param	pluginobject - an object of a subclass of the Plugin class
+ * @return	bool
  */
 function register_plugin(&$pluginobject) {
 	$pm =& plugin_manager_get_object();
@@ -327,9 +335,9 @@ function register_plugin(&$pluginobject) {
 /**
  * plugin_hook() - run a set of hooks
  *
- * @param string	$hookname - name of the hook
- * @param array		$params - parameters for the hook
- * @return bool
+ * @param	string	$hookname - name of the hook
+ * @param	array		$params - parameters for the hook
+ * @return	bool
  */
 function plugin_hook($hookname, $params = array()) {
 	$pm =& plugin_manager_get_object();
@@ -339,9 +347,9 @@ function plugin_hook($hookname, $params = array()) {
 /**
  * plugin_hook_by_reference() - run a set of hooks with params passed by reference
  *
- * @param string	$hookname - name of the hook
- * @param array		$params - parameters for the hook
- * @return bool
+ * @param	string	$hookname - name of the hook
+ * @param	array	$params - parameters for the hook
+ * @return	bool
  */
 function plugin_hook_by_reference($hookname, &$params) {
 	$pm =& plugin_manager_get_object();
@@ -351,8 +359,8 @@ function plugin_hook_by_reference($hookname, &$params) {
 /**
  * plugin_hook_listeners() - count the number of listeners on a hook
  *
- * @param string $hookname - name of the hook
- * @return int
+ * @param	string	$hookname - name of the hook
+ * @return	int
  */
 function plugin_hook_listeners($hookname) {
 	$pm =& plugin_manager_get_object();

-----------------------------------------------------------------------

Summary of changes:
 src/common/include/PluginManager.class.php |   48 ++++++++++++++++------------
 1 file changed, 28 insertions(+), 20 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list