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

Back to archive index

Minahito minah****@users*****
2006年 1月 11日 (水) 00:39:13 JST


Index: xoops2jp/html/kernel/object.php
diff -u xoops2jp/html/kernel/object.php:1.2.8.4 xoops2jp/html/kernel/object.php:1.2.8.5
--- xoops2jp/html/kernel/object.php:1.2.8.4	Sun Jan  8 17:01:35 2006
+++ xoops2jp/html/kernel/object.php	Wed Jan 11 00:39:12 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: object.php,v 1.2.8.4 2006/01/08 08:01:35 minahito Exp $
+// $Id: object.php,v 1.2.8.5 2006/01/10 15:39:12 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -49,6 +49,8 @@
 define('XOBJ_DTYPE_STIME', 9);
 define('XOBJ_DTYPE_MTIME', 10);
 define('XOBJ_DTYPE_LTIME', 11);
+define('XOBJ_DTYPE_FLOAT', 12);
+define('XOBJ_DTYPE_BOOL', 13);
 /**#@-*/
 
 //include_once "xoopspluginloader.php";
@@ -470,9 +472,19 @@
                         $cleanv = $cleanv;
                     }
                     break;
+
                 case XOBJ_DTYPE_INT:
                     $cleanv = intval($cleanv);
                     break;
+
+                case XOBJ_DTYPE_FLOAT:
+                    $cleanv = floatval($cleanv);
+                    break;
+
+                case XOBJ_DTYPE_BOOL:
+                    $cleanv = $cleanv ? 1 : 0;
+                    break;
+
                 case XOBJ_DTYPE_EMAIL:
                     if ($v['required'] && $cleanv == '') {
                         $this->setErrors("$k is required.");


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