[Fusionforge-commits] r16403 - trunk/src/plugins/headermenu/common
Franck VILLAUME
nerville at fusionforge.org
Sun Sep 30 19:42:26 CEST 2012
Author: nerville
Date: 2012-09-30 19:42:24 +0200 (Sun, 30 Sep 2012)
New Revision: 16403
Modified:
trunk/src/plugins/headermenu/common/headermenuPlugin.class.php
Log:
indent, more comments
Modified: trunk/src/plugins/headermenu/common/headermenuPlugin.class.php
===================================================================
--- trunk/src/plugins/headermenu/common/headermenuPlugin.class.php 2012-09-30 17:32:01 UTC (rev 16402)
+++ trunk/src/plugins/headermenu/common/headermenuPlugin.class.php 2012-09-30 17:42:24 UTC (rev 16403)
@@ -77,8 +77,8 @@
/**
* getOuterLink - update the links before generate the tab.
*
- * @param $params
- * @return bool true...
+ * @param array hook params array
+ * @return bool true...
*/
function getOuterLink($params) {
$availableLinks = $this->getAvailableLinks('outermenu');
@@ -95,6 +95,7 @@
$params['DIRS'][] = '/plugins/'.$this->name.'/?type=pageview&pageid='.$link['id_headermenu'];
$params['TITLES'][] = $link['name'];
$params['TOOLTIPS'][] = $link['description'];
+ break;
}
}
}
@@ -160,7 +161,7 @@
/**
* deleteLink - delete a link
*
- * @param int the link id
+ * @param int $idLink the link id
* @return bool success or not
*/
function deleteLink($idLink) {
@@ -187,6 +188,18 @@
return false;
}
+ /**
+ * updateLink - update a valid link
+ *
+ * @param int $idLink the link id to be updated
+ * @param string $url the url
+ * @param string $name the displayed name
+ * @param string $description a short description (to help administration)
+ * @param string $linkmenu linkmenu entry : headermenu or outermenu
+ * @param string $linktype : url or htmlcode, default is url
+ * @param string $htmlcode
+ * @return bool success or not
+ */
function updateLink($idLink, $url, $name, $description, $linkmenu, $linktype = 'url', $htmlcode ='') {
$res = db_query_params('update plugin_headermenu set url = $1, name = $2, description = $3, linkmenu = $4, linktype = $5, htmlcode = $6
where id_headermenu = $7',
More information about the Fusionforge-commits
mailing list