[xoops-cvslog 5581] CVS update: xoops2jp/html/modules/legacy/kernel

Back to archive index

Minahito minah****@users*****
2006年 11月 2日 (木) 18:57:35 JST


Index: xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php
diff -u xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.12 xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.13
--- xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.12	Thu Nov  2 16:38:17 2006
+++ xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php	Thu Nov  2 18:57:35 2006
@@ -1192,6 +1192,36 @@
 		
 		return $context;
 	}
+	
+	/**
+	 * Gets URL of preference editor by this controller.
+	 * @public
+	 * @param XoopsModule $module
+	 * @return string absolute URL
+	 */
+	function getPreferenceEditUrl(&$module)
+	{
+		if (is_object($module)) {
+			return XOOPS_MODULE_URL . '/legacy/admin/index.php?action=PreferenceEdit&confmod_id=' . $module->get('mid');
+		}
+
+		return null;
+	}
+	
+	/**
+	 * Gets URL of help viewer by this controller.
+	 * @public
+	 * @param XoopsModule $module
+	 * @return string absolute URL
+	 */
+	function getHelpViewUrl(&$module)
+	{
+		if (is_object($module)) {
+			return XOOPS_MODULE_URL . '/legacy/admin/index.php?action=Help&dirname=' . $module->get('dirname');
+		}
+
+		return null;
+	}
 }
 
 /**


xoops-cvslog メーリングリストの案内
Back to archive index