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

Back to archive index

Minahito minah****@users*****
2006年 5月 12日 (金) 19:11:58 JST


Index: xoops2jp/html/kernel/configitem.php
diff -u xoops2jp/html/kernel/configitem.php:1.2.8.3 xoops2jp/html/kernel/configitem.php:1.2.8.4
--- xoops2jp/html/kernel/configitem.php:1.2.8.3	Mon Feb  6 14:21:07 2006
+++ xoops2jp/html/kernel/configitem.php	Fri May 12 19:11:58 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: configitem.php,v 1.2.8.3 2006/02/06 05:21:07 nobunobu Exp $
+// $Id: configitem.php,v 1.2.8.4 2006/05/12 10:11:58 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -84,6 +84,35 @@
         $this->initVar('conf_valuetype', XOBJ_DTYPE_OTHER);
         $this->initVar('conf_order', XOBJ_DTYPE_INT);
     }
+    
+    /**
+     * Get a constract of title
+     */
+    function getTitle()
+    {
+		return defined($this->get('conf_title')) ? constant($this->get('conf_title')) : $this->get('conf_title');
+	}
+	
+    /**
+     * Get a constract of description
+     */
+	function getDesc()
+	{
+		return defined($this->get('conf_desc')) ? constant($this->get('conf_desc')) : $this->get('conf_desc');
+	}
+	
+	/**
+	 * @return array()
+	 */
+	function getOptionItems()
+	{
+		$optionArr = array();
+		
+		$handler =& xoops_gethandler('config');
+		$optionArr =& $handler->getConfigOptions(new Criteria('conf_id', $this->get('conf_id')));
+		
+		return $optionArr;
+	}
 
     /**
      * Get a config value in a format ready for output


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