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

Back to archive index

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


Index: xoops2jp/html/kernel/configoption.php
diff -u xoops2jp/html/kernel/configoption.php:1.2 xoops2jp/html/kernel/configoption.php:1.2.8.1
--- xoops2jp/html/kernel/configoption.php:1.2	Fri Mar 18 21:52:14 2005
+++ xoops2jp/html/kernel/configoption.php	Fri May 12 19:12:10 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: configoption.php,v 1.2 2005/03/18 12:52:14 onokazu Exp $
+// $Id: configoption.php,v 1.2.8.1 2006/05/12 10:12:10 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -63,6 +63,22 @@
         $this->initVar('confop_value', XOBJ_DTYPE_TXTBOX, null, true, 255);
         $this->initVar('conf_id', XOBJ_DTYPE_INT, 0);
     }
+
+    /**
+     * Get a constract of confop_value
+     */
+    function getOptionKey()
+    {
+		return defined($this->get('confop_value')) ? constant($this->get('confop_value')) : $this->get('confop_value');
+	}
+	
+    /**
+     * Get a constract of confop_name
+     */
+	function getOptionLabel()
+	{
+		return defined($this->get('confop_name')) ? constant($this->get('confop_name')) : $this->get('confop_name');
+	}
 }
 
 /**


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