[xoops-cvslog 3235] CVS update: xoops2jp/html/kernel

Back to archive index

Minahito minah****@users*****
2006年 5月 30日 (火) 12:54:19 JST


Index: xoops2jp/html/kernel/config.php
diff -u xoops2jp/html/kernel/config.php:1.2.8.2 xoops2jp/html/kernel/config.php:1.2.8.3
--- xoops2jp/html/kernel/config.php:1.2.8.2	Sun Apr 23 00:53:00 2006
+++ xoops2jp/html/kernel/config.php	Tue May 30 12:54:19 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: config.php,v 1.2.8.2 2006/04/22 15:53:00 nobunobu Exp $
+// $Id: config.php,v 1.2.8.3 2006/05/30 03:54:19 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -229,6 +229,26 @@
         	return $ret;
 		}
     }
+	
+	/**
+	 * Get configs by dirname.
+	 * 
+	 * @param string $dirname
+	 * @param int    $category   ID of a category. (Reserved)
+	 */
+	function &getConfigsByDirname($dirname, $category = 0)
+	{
+		$ret = null;;
+		$handler =& xoops_gethandler('module');;
+		$module =& $handler->getByDirname($dirname);
+		if (!is_object($module)) {
+			return $ret;
+		}
+		
+		$ret =& $this->getConfigsByCat($category, $module->get('mid'));
+		
+		return $ret;
+	}
 
     /**
      * Make a new {@link XoopsConfigOption} 


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