[Fusionforge-commits] FusionForge branch Branch_5_3 updated. b64f36d9da9c7055150f9f6e67c9d5acf9a730fc
Franck VILLAUME
nerville at fusionforge.org
Thu Feb 20 17:27:09 CET 2014
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, Branch_5_3 has been updated
via b64f36d9da9c7055150f9f6e67c9d5acf9a730fc (commit)
from ab70e435c16fac47606352507a87a993c6776f17 (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 b64f36d9da9c7055150f9f6e67c9d5acf9a730fc
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date: Thu Feb 20 17:26:22 2014 +0100
plugin extsubproj: cleanup
diff --git a/src/plugins/extsubproj/actions/addExtSubProj.php b/src/plugins/extsubproj/actions/addExtSubProj.php
index b5c9530..4d590a6 100644
--- a/src/plugins/extsubproj/actions/addExtSubProj.php
+++ b/src/plugins/extsubproj/actions/addExtSubProj.php
@@ -1,6 +1,6 @@
<?php
/**
- * Projects Hierarchy plugin
+ * extsubproj plugin
*
* Copyright 2011, Franck Villaume - Capgemini
* http://fusionforge.org
diff --git a/src/plugins/extsubproj/actions/delExtSubProj.php b/src/plugins/extsubproj/actions/delExtSubProj.php
index b8fde2e..1027c8a 100644
--- a/src/plugins/extsubproj/actions/delExtSubProj.php
+++ b/src/plugins/extsubproj/actions/delExtSubProj.php
@@ -1,6 +1,6 @@
<?php
/**
- * Projects Hierarchy plugin
+ * extsubproj plugin
*
* Copyright 2011, Franck Villaume - Capgemini
* http://fusionforge.org
diff --git a/src/plugins/extsubproj/include/extsubprojPlugin.class.php b/src/plugins/extsubproj/include/extsubprojPlugin.class.php
index 1398107..4a8b79b 100644
--- a/src/plugins/extsubproj/include/extsubprojPlugin.class.php
+++ b/src/plugins/extsubproj/include/extsubprojPlugin.class.php
@@ -251,125 +251,6 @@ class extsubprojPlugin extends Plugin {
$params['instance'] = new extsubproj_Widget_SubProjects(WidgetLayoutManager::OWNER_TYPE_GROUP, $this);
}
}
- /**
- * getConf - return the configuration defined at project level
- *
- * @param integer the group id
- * @return array the configuration array
- */
- /*function getConf($project_id) {
- $resConf = db_query_params('SELECT * from plugin_extsubproj_subprojects where project_id=$1',array($project_id));
- if (!$resConf) {
- return false;
- }
-
- $row = db_numrows($resConf);
-
- if ($row == null || count($row) > 2) {
- return false;
- }
-
- $resArr = db_fetch_array($resConf);
- $returnArr = array();
-
- foreach($resArr as $column => $value) {
- if ($value == 't') {
- $returnArr[$column] = true;
- } else {
- $returnArr[$column] = false;
- }
- }
-
- return $returnArr;
- }
- */
-
-// function CallHook ($hookname, &$params) {
-// global $use_extsubprojplugin,$G_SESSION,$HTML;
- /*
- if ($hookname == "usermenu") {
- $text = $this->text; // this is what shows in the tab
- if ($G_SESSION->usesPlugin("extsubproj")) {
- $param = '?type=user&id=' . $G_SESSION->getId() . "&pluginname=" . $this->name; // we indicate the part we're calling is the user one
- echo $HTML->PrintSubMenu (array ($text),
- array ('/plugins/extsubproj/index.php' . $param ));
-
- }
- } elseif ($hookname == "groupmenu") {
- $group_id=$params['group'];
- $project = group_get_object($group_id);
- if (!$project || !is_object($project)) {
- return;
- }
- if ($project->isError()) {
- return;
- }
- if (!$project->isProject()) {
- return;
- }
- if ( $project->usesPlugin ( $this->name ) ) {
- $params['TITLES'][]=$this->text;
- $params['DIRS'][]=util_make_url ('/plugins/extsubproj/index.php?type=group&id=' . $group_id . "&pluginname=" . $this->name) ; // we indicate the part we're calling is the project one
- } else {
- $params['TITLES'][]=$this->text." is [Off]";
- $params['DIRS'][]='';
- }
- (($params['toptab'] == $this->name) ? $params['selected']=(count($params['TITLES'])-1) : '' );
- } elseif ($hookname == "groupisactivecheckbox") {
- //Check if the group is active
- // this code creates the checkbox in the project edit public info page to activate/deactivate the plugin
- $group_id=$params['group'];
- $group = group_get_object($group_id);
- echo "<tr>";
- echo "<td>";
- echo ' <input type="checkbox" name="use_extsubprojplugin" value="1" ';
- // checked or unchecked?
- if ( $group->usesPlugin ( $this->name ) ) {
- echo "checked";
- }
- echo " /><br/>";
- echo "</td>";
- echo "<td>";
- echo "<strong>Use ".$this->text." Plugin</strong>";
- echo "</td>";
- echo "</tr>";
- } elseif ($hookname == "groupisactivecheckboxpost") {
- // this code actually activates/deactivates the plugin after the form was submitted in the project edit public info page
- $group_id=$params['group'];
- $group = group_get_object($group_id);
- $use_extsubprojplugin = getStringFromRequest('use_extsubprojplugin');
- if ( $use_extsubprojplugin == 1 ) {
- $group->setPluginUse ( $this->name );
- } else {
- $group->setPluginUse ( $this->name, false );
- }
- } elseif ($hookname == "user_personal_links") {
- // this displays the link in the user's profile page to it's personal extsubproj (if you want other sto access it, youll have to change the permissions in the index.php
- $userid = $params['user_id'];
- $user = user_get_object($userid);
- $text = $params['text'];
- //check if the user has the plugin activated
- if ($user->usesPlugin($this->name)) {
- echo ' <p>' ;
- echo util_make_link ("/plugins/extsubproj/index.php?id=$userid&type=user&pluginname=".$this->name,
- _('View Personal extsubproj')
- );
- echo '</p>';
- }
- } elseif ($hookname == "project_admin_plugins") {
- // this displays the link in the project admin options page to it's extsubproj administration
- $group_id = $params['group_id'];
- $group = group_get_object($group_id);
- if ( $group->usesPlugin ( $this->name ) ) {
- echo '<p>'.util_make_link ("/plugins/extsubproj/admin/index.php?id=".$group->getID().'&type=admin&pluginname='.$this->name,
- _('extsubproj Admin')).'</p>' ;
- }
- }
- elseif ($hookname == "blahblahblah") {
- // ...
- }
- */
-// }
}
diff --git a/src/plugins/extsubproj/view/admin/viewGlobalConfiguration.php b/src/plugins/extsubproj/view/admin/viewGlobalConfiguration.php
index bcef3f7..a64ce69 100644
--- a/src/plugins/extsubproj/view/admin/viewGlobalConfiguration.php
+++ b/src/plugins/extsubproj/view/admin/viewGlobalConfiguration.php
@@ -1,6 +1,6 @@
<?php
/**
- * Projects Hierarchy plugin
+ * extsubproj plugin
*
* Copyright 2011, Franck Villaume - Capgemini
* http://fusionforge.org
diff --git a/src/plugins/extsubproj/view/admin/viewProjectConfiguration.php b/src/plugins/extsubproj/view/admin/viewProjectConfiguration.php
index 06ab42e..eb81882 100644
--- a/src/plugins/extsubproj/view/admin/viewProjectConfiguration.php
+++ b/src/plugins/extsubproj/view/admin/viewProjectConfiguration.php
@@ -1,6 +1,6 @@
<?php
/**
- * Projects Hierarchy plugin
+ * extsubproj plugin
*
* Copyright 2011, Franck Villaume - Capgemini
* http://fusionforge.org
-----------------------------------------------------------------------
Summary of changes:
src/plugins/extsubproj/actions/addExtSubProj.php | 2 +-
src/plugins/extsubproj/actions/delExtSubProj.php | 2 +-
.../extsubproj/include/extsubprojPlugin.class.php | 119 --------------------
.../view/admin/viewGlobalConfiguration.php | 2 +-
.../view/admin/viewProjectConfiguration.php | 2 +-
5 files changed, 4 insertions(+), 123 deletions(-)
hooks/post-receive
--
FusionForge
More information about the Fusionforge-commits
mailing list